From c16d264209c84095bbfc94b3317d5590a6982d09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A6=E5=90=9B?= <73606411+setube@users.noreply.github.com> Date: Sat, 20 Dec 2025 02:02:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96Android=E5=AE=89?= =?UTF-8?q?=E5=85=A8=E5=8C=BA=E5=9F=9F=E9=A1=B6=E9=83=A8=E9=97=B4=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将顶部安全区域适配由env(safe-area-inset-top, 0)调整为calc(env(safe-area-inset-top, 0px) + 8px),避免内容过于靠近状态栏,提升Android/Capacitor端显示体验。 --- src/style.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/style.css b/src/style.css index 7a4e272..aec244f 100644 --- a/src/style.css +++ b/src/style.css @@ -126,8 +126,8 @@ line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; - /* Android/Capacitor 安全区域适配 */ - padding-top: env(safe-area-inset-top, 0); + /* Android/Capacitor 安全区域适配 - 额外增加 8px 避免太靠近状态栏 */ + padding-top: calc(env(safe-area-inset-top, 0px) + 8px); padding-bottom: env(safe-area-inset-bottom, 0); padding-left: env(safe-area-inset-left, 0); padding-right: env(safe-area-inset-right, 0);