Fixed height calc in chats
This commit is contained in:
parent
93db9fe54a
commit
7811a66b5c
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ export default function Screen() {
|
||||||
);
|
);
|
||||||
const inputHeight = el.scrollHeight + 56;
|
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(() => {
|
useLayoutEffect(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue