mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-19 21:14:21 +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,
|
html,
|
||||||
body,
|
body,
|
||||||
#root {
|
#root {
|
||||||
|
|||||||
@@ -135,6 +135,10 @@ if (isMacDesktop) {
|
|||||||
document.documentElement.classList.add("platform-macos")
|
document.documentElement.classList.add("platform-macos")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isIos) {
|
||||||
|
document.documentElement.classList.add("platform-ios")
|
||||||
|
}
|
||||||
|
|
||||||
window.addEventListener("error", (e: any) => {
|
window.addEventListener("error", (e: any) => {
|
||||||
const error = e?.error
|
const error = e?.error
|
||||||
safeWriteLog({
|
safeWriteLog({
|
||||||
|
|||||||
Reference in New Issue
Block a user