From ba16c606fd11188f33f64fad86296d54c3402f44 Mon Sep 17 00:00:00 2001 From: leejimqiu Date: Wed, 14 Dec 2022 14:43:33 +0800 Subject: [PATCH 1/2] fix(tabbar): resolve safe area on round theme --- src/tab-bar/tab-bar.less | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/tab-bar/tab-bar.less b/src/tab-bar/tab-bar.less index ba9236356..d408f1c5c 100644 --- a/src/tab-bar/tab-bar.less +++ b/src/tab-bar/tab-bar.less @@ -13,7 +13,7 @@ background-color: var(--td-tab-bar-bg-color, @tab-bar-bg-color); box-sizing: border-box; - &--border::before { + &--normal&--border::before { z-index: 1; .hairline-top(@color: var(--td-tab-bar-border-color, @tab-bar-border-color)); } @@ -25,7 +25,7 @@ right: 0; } - &--safe { + &--normal&--safe { padding-bottom: constant(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom); } @@ -37,4 +37,9 @@ box-shadow: 0px 6px 30px 5px rgba(0, 0, 0, 0.05), 0px 16px 24px 2px rgba(0, 0, 0, 0.04), 0px 8px 10px -5px rgba(0, 0, 0, 0.08); } + + &--fixed&--round&--safe { + bottom: constant(safe-area-inset-bottom); + bottom: env(safe-area-inset-bottom); + } } From 925134c56c78caeb690eda2558777a2556f569da Mon Sep 17 00:00:00 2001 From: leejimqiu Date: Wed, 14 Dec 2022 14:51:33 +0800 Subject: [PATCH 2/2] fix(tabbar): update demo --- src/tab-bar/_example/tab-bar.less | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tab-bar/_example/tab-bar.less b/src/tab-bar/_example/tab-bar.less index 8d42369ec..3dba86cf1 100644 --- a/src/tab-bar/_example/tab-bar.less +++ b/src/tab-bar/_example/tab-bar.less @@ -10,6 +10,7 @@ .t-tab-bar { position: relative; - padding-bottom: 0; + padding-bottom: 0 !important; + bottom: 0 !important; } }