sforkowany z mirror/soapbox
EmojiSelector: ensure the full picker fits on the screen on mobile
rodzic
23acbc115c
commit
0e7136ec04
|
@ -111,6 +111,12 @@ const EmojiSelector: React.FC<IEmojiSelector> = ({
|
||||||
}
|
}
|
||||||
}, [visible, update]);
|
}, [visible, update]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (expanded && update) {
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
}, [expanded, update]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={clsx('z-[101] transition-opacity duration-100', {
|
className={clsx('z-[101] transition-opacity duration-100', {
|
||||||
|
|
Ładowanie…
Reference in New Issue