mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-24 00:38:31 +08:00
fix label logic
This commit is contained in:
parent
bcf462aad4
commit
a3f6e17b2b
@ -114,7 +114,7 @@ export function ReactionPopupMenu({
|
||||
<li key={reaction.name}>
|
||||
<Tooltip
|
||||
label={
|
||||
index < ReactionsRowSize
|
||||
index >= ReactionsRowSize
|
||||
? reaction.name
|
||||
: `${reaction.name} (${index + 1})`
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ export const GenericReaction: ReactionOption = {
|
||||
},
|
||||
};
|
||||
|
||||
export const ReactionsRowSize = 6;
|
||||
export const ReactionsRowSize = 5;
|
||||
|
||||
// The first {ReactionsRowSize} reactions are always visible.
|
||||
export const ReactionSet: ReactionOption[] = [
|
||||
|
Loading…
Reference in New Issue
Block a user