Fixed height calc in chats

This commit is contained in:
Alois 2026-04-10 21:28:09 +02:00
commit 7811a66b5c

View file

@ -169,7 +169,7 @@ export default function Screen() {
);
const inputHeight = el.scrollHeight + 56;
host.style.maxHeight = `calc(${viewportHeight}px - ${inputHeight}px - env(safe-area-inset-bottom) - env(safe-area-inset-top))`;
host.style.maxHeight = `calc(${viewportHeight}px - ${inputHeight - 62}px - env(safe-area-inset-bottom) - env(safe-area-inset-top))`;
}, []);
useLayoutEffect(() => {