Skip to content

Commit 8ed837c

Browse files
fix: adjust log panel and filter styles for better responsiveness
1 parent cc8632b commit 8ed837c

1 file changed

Lines changed: 43 additions & 13 deletions

File tree

src/pages/LogsPage.module.scss

Lines changed: 43 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,10 @@
318318
background: var(--bg-secondary);
319319
border: 1px solid var(--border-color);
320320
border-radius: $radius-md;
321-
flex: 0 0 auto;
322-
min-height: 420px;
323-
max-height: none;
324-
height: calc(100vh - 520px);
321+
flex: 1 1 auto;
322+
min-height: 280px;
323+
max-height: calc(100vh - 320px);
324+
height: auto;
325325
overflow: auto;
326326
resize: vertical;
327327
position: relative;
@@ -330,9 +330,8 @@
330330
overscroll-behavior: contain;
331331

332332
@include tablet {
333-
min-height: 360px;
334-
height: calc(100vh - 500px);
335-
max-height: none;
333+
min-height: 240px;
334+
max-height: calc(100vh - 300px);
336335
}
337336

338337
@include mobile {
@@ -764,6 +763,15 @@
764763
}
765764
}
766765

766+
@media (max-height: 960px) {
767+
@media (min-width: 769px) {
768+
.logPanel {
769+
min-height: 160px;
770+
max-height: calc(100vh - 300px);
771+
}
772+
}
773+
}
774+
767775
@media (max-height: 820px) {
768776
.pageTitle {
769777
font-size: 24px;
@@ -782,6 +790,23 @@
782790
gap: $spacing-md;
783791
}
784792

793+
@media (min-width: 769px) {
794+
.filters {
795+
flex: 0 0 auto;
796+
gap: $spacing-sm;
797+
margin-bottom: $spacing-sm;
798+
max-height: 260px;
799+
overflow: auto;
800+
padding-right: 4px;
801+
overscroll-behavior: contain;
802+
}
803+
804+
.logPanel {
805+
min-height: 0;
806+
max-height: calc(100vh - 280px);
807+
}
808+
}
809+
785810
.logCard {
786811
padding: $spacing-md;
787812
}
@@ -820,14 +845,19 @@
820845
gap: $spacing-sm;
821846
}
822847

823-
.logCard {
824-
padding: $spacing-sm;
848+
@media (min-width: 769px) {
849+
.filters {
850+
max-height: 180px;
851+
}
852+
853+
.logPanel {
854+
min-height: 0;
855+
max-height: calc(100vh - 220px);
856+
}
825857
}
826858

827-
.logPanel {
828-
min-height: 320px;
829-
height: 320px;
830-
max-height: none;
859+
.logCard {
860+
padding: $spacing-sm;
831861
}
832862

833863
.logRow {

0 commit comments

Comments
 (0)