mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-19 12:34:22 +08:00
修复iOS首帧进入底部白边问题
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user