Skip to content

Commit e8a5f85

Browse files
committed
refactor: split mobile tab height into base and total
1 parent a51a0b2 commit e8a5f85

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

less/components/MobileTab.less

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
:root {
2-
--mobile-tab-height: 54px;
2+
--mobile-tab-base-height: 54px;
3+
--mobile-tab-height: calc(
4+
var(--mobile-tab-base-height) + env(safe-area-inset-bottom, 0)
5+
);
36
--mobile-tab-bg: var(--body-bg);
47
--mobile-tab-zindex: var(--zindex-header);
58
--mobile-tab-shadow: 0 2px 6px var(--shadow-color);
@@ -16,7 +19,7 @@
1619
bottom: 0;
1720
left: 0;
1821
width: 100%;
19-
height: ~"calc(var(--mobile-tab-height) + env(safe-area-inset-bottom, 0))";
22+
height: var(--mobile-tab-height);
2023
background: var(--mobile-tab-bg);
2124
box-shadow: var(--mobile-tab-shadow);
2225
z-index: var(--mobile-tab-zindex);

0 commit comments

Comments
 (0)