Skip to content

Commit a79d2fb

Browse files
committed
Display: Adjust sidebar and container styles for consistent overflow handling and responsive layout improvements
1 parent 8b324bc commit a79d2fb

3 files changed

Lines changed: 16 additions & 7 deletions

File tree

assets/css/scss/layout/_main_container.scss

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
#app {
2+
@apply overflow-hidden
3+
sm:overflow-auto;
4+
}
5+
16
.app-main {
2-
@apply flex flex-col h-screen md:pb-8 md:px-8 transition-[margin-left] duration-150;
7+
@apply flex flex-col h-screen transition-[margin-left] duration-150 pb-4 px-4
8+
sm:min-h-screen
9+
md:h-auto md:pb-8 md:px-8;
310
padding-top: calc(4.5rem + 1rem + 1px);
411

512
&:not(.app-main--no-sidebar) {
@@ -8,6 +15,12 @@
815
}
916

1017
#app.app--sidebar-inactive {
18+
@apply overflow-auto;
19+
20+
.app-main {
21+
@apply h-auto;
22+
}
23+
1124
.app-main:not(.app-main--no-sidebar) {
1225
@apply sm:ml-[88px];
1326
}

assets/css/scss/layout/_topbar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
.p-menubar-root-list {
2424
@apply pt-8;
25-
height: calc(100vh - 3.5rem - 1px);
25+
height: calc(100vh - 4.5rem - 1px);
2626

2727
> .p-menubar-item {
2828
@apply w-full px-6 pb-2 text-gray-50;

assets/css/scss/organisms/_sidebar.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,6 @@
187187
}
188188

189189
#app {
190-
.app-main {
191-
// @apply overflow-hidden;
192-
}
193-
194190
&.app--sidebar-inactive {
195191
.app-sidebar {
196192
@apply hidden
@@ -234,7 +230,7 @@
234230
}
235231

236232
.app-main {
237-
@apply overflow-auto;
233+
// @apply overflow-auto;
238234
}
239235
}
240236
}

0 commit comments

Comments
 (0)