diff --git a/src/assets/main.css b/src/assets/main.css index 76bf2b3..c64bf4b 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -20,16 +20,11 @@ } } -/* iOS WebView 首帧偶发 vh/dvh 计算偏小,优先使用 fill-available 防止底部白边 */ -html.platform-ios { - --ss-app-height: -webkit-fill-available; -} - +/* iOS 使用固定根容器覆盖可视区域,避免首帧/交互后视口高度抖动产生白边 */ html.platform-ios, -html.platform-ios body, -html.platform-ios #root { - height: -webkit-fill-available; - min-height: -webkit-fill-available; +html.platform-ios body { + height: 100%; + min-height: 100%; } html, @@ -56,6 +51,13 @@ body, box-sizing: border-box; } +html.platform-ios #root { + position: fixed; + inset: 0; + height: auto; + min-height: 0; +} + input, textarea { user-select: text;