Skip to content

Commit a52c2e1

Browse files
committed
Fix drawer content not expanding properly
Refs: #7487
1 parent ba12c49 commit a52c2e1

File tree

1 file changed

+25
-0
lines changed
  • packages/components/src/components/drawer

1 file changed

+25
-0
lines changed

packages/components/src/components/drawer/style.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
@layer kol-component {
55
.kol-drawer {
6+
$root: &;
67
font-size: rem(16);
78

89
&__dialog {
@@ -21,27 +22,51 @@
2122
left: 0;
2223
height: 100vh;
2324
max-height: 100%;
25+
26+
#{$root}__content {
27+
height: 100%;
28+
max-width: rem(400);
29+
box-sizing: border-box;
30+
}
2431
}
2532

2633
&--right {
2734
top: 0;
2835
right: 0;
2936
height: 100vh;
3037
max-height: 100%;
38+
39+
#{$root}__content {
40+
height: 100%;
41+
max-width: rem(400);
42+
box-sizing: border-box;
43+
}
3144
}
3245

3346
&--top {
3447
left: 0;
3548
top: 0;
3649
width: 100vw;
3750
max-width: 100%;
51+
52+
#{$root}__content {
53+
width: 100%;
54+
max-height: rem(400);
55+
box-sizing: border-box;
56+
}
3857
}
3958

4059
&--bottom {
4160
left: 0;
4261
bottom: 0;
4362
width: 100vw;
4463
max-width: 100%;
64+
65+
#{$root}__content {
66+
width: 100%;
67+
max-height: rem(400);
68+
box-sizing: border-box;
69+
}
4570
}
4671
}
4772

0 commit comments

Comments
 (0)