Skip to content

Commit 59d93b8

Browse files
committed
feat: Add max-height to dropdown
1 parent edf0e2b commit 59d93b8

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

assets/sass/dropdown.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
border: var(--border-visible);
129129
animation-duration: 0.2s;
130130
animation-timing-function: ease;
131-
max-height: 80dvh;
131+
max-height: 20rem;
132132
overflow-y: auto;
133133

134134
&--above {

assets/sass/navigation.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,13 @@ menu > li > menu {
8787
padding: 0.4rem;
8888
justify-items: flex-start;
8989
z-index: 14;
90+
max-height: calc(100dvh - 7.6rem);
9091

9192
display: grid;
9293
grid-auto-flow: row;
9394
grid-template-rows: auto;
9495
grid-template-columns: 1fr 1fr 1fr;
9596

96-
@media (max-width: #{$breakpoint-lg}) {
97-
grid-template-columns: 1fr 1fr;
98-
}
99-
10097
&--vertical {
10198
grid-template-columns: auto;
10299
}

0 commit comments

Comments
 (0)