Skip to content

Commit eeb94fa

Browse files
authored
Update mobile sidebar styles (#950)
1 parent 95feb8f commit eeb94fa

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

frontend/src/components/layouts/AppLayout/AppLayout.module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
.main {
2929
grid-area: main;
3030
padding: var(--hi-spacing-lg);
31+
padding-bottom: calc(var(--hi-spacing-lg) + 40px);
3132
overflow: auto;
3233
background-color: #f9fafc;
3334

frontend/src/components/layouts/AppLayout/Sidebar/Sidebar.module.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
flex: 1 1 auto;
3838
overflow: auto;
3939
position: relative;
40-
padding: 8px 0;
40+
padding: 8px 0 24px;
4141
scrollbar-width: thin;
4242
scrollbar-color: transparent transparent;
4343

@@ -171,13 +171,14 @@
171171

172172
@media (max-width: 767px) {
173173
position: fixed;
174-
width: 280px;
174+
width: 100%;
175175
height: 100vh;
176+
height: 100dvh;
176177
z-index: 200;
177178
transform: translateX(-100%);
178179
top: 0;
179180
left: 0;
180-
181+
181182
&.open {
182183
transform: translateX(0);
183184
}

0 commit comments

Comments
 (0)