Skip to content

Commit 6754fc4

Browse files
committed
fix(dividers): prevent from growing in the wrong direction
fixes #4641 see #4615
1 parent e313796 commit 6754fc4

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/stylus/components/_dividers.styl

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,24 @@ theme(v-divider, "v-divider")
88

99
.v-divider
1010
display: block
11-
flex: 1 1
12-
width: 100%
11+
flex: 1 1 0px
12+
max-width: 100%
13+
height: 0px
14+
max-height: 0px
1315
border: solid
1416
border-width: thin 0 0 0
1517

1618
&--inset:not(.v-divider--vertical)
1719
margin-left: 72px
18-
width: calc(100% - 72px)
20+
max-width: calc(100% - 72px)
1921

2022
&--vertical
21-
flex: 0 1 auto
23+
width: 0px
24+
max-width: 0px
2225
height: 100%
26+
max-height: 100%
2327
border: solid
2428
border-width: 0 thin 0 0
2529

2630
&.v-divider--inset
27-
height: calc(100% - 16px)
31+
max-height: calc(100% - 16px)

0 commit comments

Comments
 (0)