Skip to content

Commit ea95de9

Browse files
committed
refactor: allow the Nav to shrink in size if the available space is constrained
1 parent 0eda431 commit ea95de9

File tree

1 file changed

+1
-2
lines changed
  • packages/uikit-workshop/src/scripts/components/pl-nav

1 file changed

+1
-2
lines changed

packages/uikit-workshop/src/scripts/components/pl-nav/pl-nav.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,14 @@ pl-nav {
3737
display: flex;
3838
flex-direction: column;
3939
transition: max-height $pl-animate-quick ease-out;
40-
flex-shrink: 0;
40+
flex-shrink: 1;
4141

4242
@media all and (min-width: $pl-bp-med) {
4343
.pl-c-body--theme-sidebar & {
4444
padding-bottom: 0.5rem;
4545
display: block;
4646
display: flex;
4747
overflow: hidden;
48-
flex-shrink: 1;
4948
}
5049
}
5150

0 commit comments

Comments
 (0)