Use caption

This commit is contained in:
Half-Shot
2024-11-19 16:48:18 +00:00
parent fee454f286
commit 196f84bb28
2 changed files with 8 additions and 7 deletions

View File

@@ -90,7 +90,7 @@ export function ReactionPopupMenu({
)}
<div className={styles.reactionPopupMenu}>
<section className={styles.handRaiseSection}>
<Tooltip label={label}>
<Tooltip label={label} caption={"H"}>
<CpdButton
kind={isHandRaised ? "primary" : "secondary"}
aria-keyshortcuts="H"
@@ -113,10 +113,11 @@ export function ReactionPopupMenu({
{filteredReactionSet.map((reaction, index) => (
<li key={reaction.name}>
<Tooltip
label={
index >= ReactionsRowSize
? reaction.name
: `${reaction.name} (${index + 1})`
label={reaction.name}
caption={
index < ReactionsRowSize
? (index + 1).toString()
: undefined
}
>
<CpdButton