Composer: Show regular emoji suggestion first (#6324)
This commit is contained in:
parent
fb29c7e333
commit
338354afbe
@ -14,7 +14,7 @@
|
|||||||
margin: 0.5rem 0 0.5rem 0.25rem;
|
margin: 0.5rem 0 0.5rem 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:global(.shown + .StickerTooltip) {
|
&:global(.open + .StickerTooltip) {
|
||||||
transform: translateY(-1.75rem);
|
transform: translateY(-3.25rem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -74,7 +74,7 @@ const CustomEmojiTooltip: FC<OwnProps & StateProps> = ({
|
|||||||
|
|
||||||
const className = buildClassName(
|
const className = buildClassName(
|
||||||
styles.root,
|
styles.root,
|
||||||
'composer-tooltip custom-scroll-x',
|
'composer-tooltip no-scrollbar',
|
||||||
transitionClassNames,
|
transitionClassNames,
|
||||||
!displayedStickers?.length && styles.hidden,
|
!displayedStickers?.length && styles.hidden,
|
||||||
);
|
);
|
||||||
|
|||||||
@ -80,7 +80,7 @@ const EmojiTooltip: FC<OwnProps> = ({
|
|||||||
const containerRef = useRef<HTMLDivElement>();
|
const containerRef = useRef<HTMLDivElement>();
|
||||||
const { shouldRender, transitionClassNames } = useShowTransitionDeprecated(isOpen, undefined, undefined, false);
|
const { shouldRender, transitionClassNames } = useShowTransitionDeprecated(isOpen, undefined, undefined, false);
|
||||||
const listEmojis: (Emoji | ApiSticker)[] = usePrevDuringAnimation(
|
const listEmojis: (Emoji | ApiSticker)[] = usePrevDuringAnimation(
|
||||||
emojis.length ? [...customEmojis, ...emojis] : undefined, CLOSE_DURATION,
|
emojis.length ? [...emojis, ...customEmojis] : undefined, CLOSE_DURATION,
|
||||||
) || [];
|
) || [];
|
||||||
|
|
||||||
useHorizontalScroll(containerRef);
|
useHorizontalScroll(containerRef);
|
||||||
@ -135,7 +135,7 @@ const EmojiTooltip: FC<OwnProps> = ({
|
|||||||
}, [selectedIndex]);
|
}, [selectedIndex]);
|
||||||
|
|
||||||
const className = buildClassName(
|
const className = buildClassName(
|
||||||
'EmojiTooltip composer-tooltip custom-scroll-x',
|
'EmojiTooltip composer-tooltip no-scrollbar',
|
||||||
transitionClassNames,
|
transitionClassNames,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user