修复iOS首帧进入底部白边问题

This commit is contained in:
JSR
2026-03-19 20:15:44 +08:00
parent 1dedb65956
commit 0e64ca8083
2 changed files with 16 additions and 0 deletions
+12
View File
@@ -20,6 +20,18 @@
}
}
/* iOS WebView 首帧偶发 vh/dvh 计算偏小,优先使用 fill-available 防止底部白边 */
html.platform-ios {
--ss-app-height: -webkit-fill-available;
}
html.platform-ios,
html.platform-ios body,
html.platform-ios #root {
height: -webkit-fill-available;
min-height: -webkit-fill-available;
}
html,
body,
#root {
+4
View File
@@ -135,6 +135,10 @@ if (isMacDesktop) {
document.documentElement.classList.add("platform-macos")
}
if (isIos) {
document.documentElement.classList.add("platform-ios")
}
window.addEventListener("error", (e: any) => {
const error = e?.error
safeWriteLog({