mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-10-03 02:10:55 +00:00
Fix emoji box orientation threshold
This commit is contained in:
parent
e3bda9e793
commit
1499d6c60a
@ -1223,7 +1223,7 @@ const EditBox: Component<{
|
|||||||
|
|
||||||
const determineOrient = () => {
|
const determineOrient = () => {
|
||||||
const coor = getScreenCordinates(emojiPicker);
|
const coor = getScreenCordinates(emojiPicker);
|
||||||
const height = 226;
|
const height = 326;
|
||||||
return (coor.y || 0) + height < window.innerHeight + window.scrollY ? 'down' : 'up';
|
return (coor.y || 0) + height < window.innerHeight + window.scrollY ? 'down' : 'up';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user