mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-03-03 18:07:31 +08:00
fix: adjust iOS Safari safe area handling for bottom navigation
This commit is contained in:
@@ -11,11 +11,6 @@
|
||||
.scrollbar-hide::-webkit-scrollbar {
|
||||
display: none; /* Chrome, Safari and Opera */
|
||||
}
|
||||
|
||||
/* iOS Safari 安全区域工具类 */
|
||||
.pb-safe-bottom {
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
}
|
||||
|
||||
:root {
|
||||
@@ -28,15 +23,10 @@ body {
|
||||
overflow-x: hidden;
|
||||
/* 阻止 iOS Safari 拉动回弹 */
|
||||
overscroll-behavior: none;
|
||||
/* 支持 iOS Safari 安全区域 */
|
||||
padding: env(safe-area-inset-top) env(safe-area-inset-right)
|
||||
env(safe-area-inset-bottom) env(safe-area-inset-left);
|
||||
}
|
||||
|
||||
body {
|
||||
color: rgb(var(--foreground-rgb));
|
||||
/* iOS Safari 安全区域背景适配 */
|
||||
background-color: #f7f7f3;
|
||||
}
|
||||
|
||||
html:not(.dark) body {
|
||||
|
||||
Reference in New Issue
Block a user