web/emojipicker: don't allow pack names to wrap

This commit is contained in:
Tulir Asokan 2024-12-21 19:30:14 +02:00
parent 89895b197e
commit 1ff9ba241a
2 changed files with 8 additions and 1 deletions

View file

@ -98,7 +98,7 @@ export const EmojiGroup = ({
style={{ containIntrinsicHeight: `${1.5 + Math.ceil(emojis.length / itemsPerRow) * rowSize}rem` }}
>
<h4 className="emoji-category-name">
{categoryName}
<span title={categoryName}>{categoryName}</span>
{pack && <button
className="emoji-category-add"
onClick={isWatched ? onClickUnsubscribePack : onClickSubscribePack}

View file

@ -166,6 +166,13 @@ div.emoji-picker, div.sticker-picker {
display: flex;
align-items: center;
> span {
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
> button {
margin-left: .25rem;
font-size: .8rem;