From 196f84bb286181d011ef90fba451c3b1d46512d4 Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Tue, 19 Nov 2024 16:48:18 +0000 Subject: [PATCH] Use caption --- locales/en-GB/app.json | 4 ++-- src/button/ReactionToggleButton.tsx | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/locales/en-GB/app.json b/locales/en-GB/app.json index 7f142953..9366ecd0 100644 --- a/locales/en-GB/app.json +++ b/locales/en-GB/app.json @@ -8,10 +8,10 @@ "edit": "Edit", "go": "Go", "invite": "Invite", - "lower_hand": "Lower hand ({{keyboardShortcut}})", + "lower_hand": "Lower hand", "no": "No", "pick_reaction": "Pick reaction", - "raise_hand": "Raise hand ({{keyboardShortcut}})", + "raise_hand": "Raise hand", "raise_hand_or_send_reaction": "Raise hand or send reaction", "register": "Register", "remove": "Remove", diff --git a/src/button/ReactionToggleButton.tsx b/src/button/ReactionToggleButton.tsx index 00384ac6..481916e2 100644 --- a/src/button/ReactionToggleButton.tsx +++ b/src/button/ReactionToggleButton.tsx @@ -90,7 +90,7 @@ export function ReactionPopupMenu({ )}
- + (
  • = ReactionsRowSize - ? reaction.name - : `${reaction.name} (${index + 1})` + label={reaction.name} + caption={ + index < ReactionsRowSize + ? (index + 1).toString() + : undefined } >