From 02f3c991015d07e0401d568084b49a1a9f6892df Mon Sep 17 00:00:00 2001 From: j10c Date: Sun, 13 Oct 2024 10:40:03 +0800 Subject: [PATCH] fix(style): use css env as bottom-padding Deprecate `isNewIPhone` function and related. --- src/components/BottomPanel/index.scss | 7 ++--- src/components/BottomPanel/index.vue | 6 +---- src/components/PopView/index.vue | 5 +--- .../lostfound/ContactMe/index.module.scss | 8 ++---- src/pages/lostfound/ContactMe/index.vue | 3 +-- src/pages/suit/ContactMe/index.module.scss | 8 ++---- src/pages/suit/ContactMe/index.vue | 3 +-- src/utils/effects.ts | 27 ------------------- src/utils/index.ts | 4 +-- 9 files changed, 11 insertions(+), 60 deletions(-) diff --git a/src/components/BottomPanel/index.scss b/src/components/BottomPanel/index.scss index 9a76e7b5..8f02c17c 100644 --- a/src/components/BottomPanel/index.scss +++ b/src/components/BottomPanel/index.scss @@ -14,8 +14,5 @@ border-top-left-radius: 1rem; z-index: 3000; background: var(--wjh-color-background-frame); -} - -.bottom-bar-ios { - padding-bottom: 2rem; -} + padding-bottom: env(safe-area-inset-bottom); +} \ No newline at end of file diff --git a/src/components/BottomPanel/index.vue b/src/components/BottomPanel/index.vue index cafa8fcd..a48c9233 100644 --- a/src/components/BottomPanel/index.vue +++ b/src/components/BottomPanel/index.vue @@ -1,14 +1,10 @@ diff --git a/src/components/PopView/index.vue b/src/components/PopView/index.vue index 3f47b24e..831872dc 100644 --- a/src/components/PopView/index.vue +++ b/src/components/PopView/index.vue @@ -4,9 +4,7 @@ @@ -14,7 +12,6 @@