refactor: simplify mobile keyboard handling

Removed fragile global keyboard viewport manager
Restored native mobile viewport behavior
Fixed textarea content shifting outside inputs
This commit is contained in:
Bohdan Triapitsyn
2026-04-26 17:44:33 +03:00
parent be723fa58b
commit 6176ee2b0f
9 changed files with 7 additions and 329 deletions
-26
View File
@@ -164,28 +164,6 @@
overflow: hidden;
}
:root.device-mobile:not(.desktop-runtime) body,
:root.device-mobile:not(.desktop-runtime) #root {
position: fixed;
top: 0;
left: 0;
right: 0;
height: var(--oc-visual-viewport-height, 100dvh);
width: 100%;
overflow: hidden;
overscroll-behavior-y: none;
}
:root.device-android:not(.desktop-runtime) body,
:root.device-android:not(.desktop-runtime) #root {
position: relative;
top: auto;
left: auto;
right: auto;
height: 100%;
min-height: 0;
}
/* Fix main layout container */
:root.mobile-pointer:not(.desktop-runtime) .flex.flex-col.h-screen {
height: 100vh;
@@ -288,10 +266,6 @@
padding-bottom: var(--oc-safe-area-bottom-visual);
}
:root.device-mobile:not(.desktop-runtime) .ios-keyboard-safe-area {
padding-bottom: calc(var(--oc-keyboard-home-indicator, 34px) + var(--oc-safe-area-bottom-visual, 0px)) !important;
}
/* Fix iOS viewport issues */
:root.device-mobile:not(.desktop-runtime) .flex.flex-col.h-screen {
min-height: 100vh;