mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 09:01:17 -08:00
formatting
This commit is contained in:
1 parent
25209edde4
commit
a6dbee0099
1 file changed
+1
-2
@@ -31,8 +31,7 @@ export function installIosPwaViewportHeight(): void {
|
||||
const visibleBottom = visibleHeight + (viewport?.offsetTop ?? 0);
|
||||
|
||||
const screenHeight = fullScreenHeight();
|
||||
const keyboardOpen =
|
||||
isEditableFocused() && screenHeight - visibleHeight > MIN_KEYBOARD_HEIGHT;
|
||||
const keyboardOpen = isEditableFocused() && screenHeight - visibleHeight > MIN_KEYBOARD_HEIGHT;
|
||||
const height = keyboardOpen ? visibleBottom : screenHeight;
|
||||
|
||||
document.documentElement.style.setProperty(IOS_PWA_VIEWPORT_HEIGHT, `${Math.round(height)}px`);
|
||||
|
||||
Reference in new issue
Block a user