Skip to content

Commit 289abbe

Browse files
[ADE-100] Improve Tab Navigation Styling and Platform Consistency
1 parent 470ccc1 commit 289abbe

File tree

2 files changed

+46
-3
lines changed

2 files changed

+46
-3
lines changed

frontend/src/common/components/Router/TabNavigation.scss

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
.ls-tab-navigation {
22
&__bar {
33
border-radius: 2rem;
4-
margin: 0 0.75rem 1.5rem;
4+
margin: 0 0.75rem 0.75rem;
55
box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
6-
height: 3.5rem;
6+
height: var(--tab-bar-height, 3.5rem);
77
--background: #ffffff;
88

9+
/* Override default iOS padding */
10+
padding-bottom: 0;
11+
912
&-button {
1013
--color: #435FF0;
1114
--color-selected: #fd7bf4;
1215

16+
/* Ensure consistent alignment across platforms */
17+
display: flex;
18+
align-items: center;
19+
justify-content: center;
20+
1321
&-icon {
1422
margin: 0;
1523
font-size: 1.25rem;
@@ -35,10 +43,11 @@
3543
height: 3rem;
3644
border-radius: 50%;
3745
position: absolute;
38-
top: 0.25rem;
46+
bottom: calc(50% - 0.5rem);
3947
left: 50%;
4048
transform: translateX(-50%);
4149
box-shadow: 0 0.25rem 0.5rem rgba(71, 101, 255, 0.3);
50+
z-index: 10;
4251

4352
.ls-tab-navigation__bar-button-icon {
4453
color: white;

frontend/src/theme/theme-overrides.css

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848

4949
/* Base toolbar height */
5050
--ion-toolbar-base-height: 2.75rem;
51+
52+
/* Tab bar height */
53+
--tab-bar-height: 3.5rem;
5154
}
5255

5356
/* Global safe area padding for all pages */
@@ -59,3 +62,34 @@ ion-content {
5962
ion-router-outlet {
6063
padding-top: 0;
6164
}
65+
66+
/* Tab bar fixed size for all platforms */
67+
.ls-tab-navigation__bar {
68+
height: var(--tab-bar-height);
69+
max-height: var(--tab-bar-height);
70+
padding-bottom: 0;
71+
padding-top: 0;
72+
contain: strict;
73+
}
74+
75+
/* Fix for iOS tab bar bottom padding */
76+
.ios ion-tab-bar {
77+
height: var(--tab-bar-height);
78+
max-height: var(--tab-bar-height);
79+
padding-bottom: 0;
80+
}
81+
82+
/* Position tab bar items correctly for all platforms */
83+
.ls-tab-navigation__bar-button {
84+
height: 100%;
85+
display: flex;
86+
align-items: center;
87+
justify-content: center;
88+
}
89+
90+
/* Ensure upload button is correctly positioned */
91+
.ls-tab-navigation__bar-button--upload .ls-tab-navigation__bar-button-upload-wrapper {
92+
bottom: calc(50% - 1.5rem);
93+
top: auto;
94+
position: absolute;
95+
}

0 commit comments

Comments
 (0)