Skip to content

Commit 47d4eea

Browse files
authored
fix: inset compatibility (#345)
1 parent 4209fae commit 47d4eea

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

assets/index.less

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,29 @@
33
@prefixCls: rc-drawer;
44
@zIndex: 1050;
55

6+
.inset-0() {
7+
top: 0;
8+
bottom: 0;
9+
left: 0;
10+
right: 0;
11+
}
12+
613
.@{prefixCls} {
14+
.inset-0;
715
position: fixed;
816
z-index: @zIndex;
917
pointer-events: none;
10-
inset: 0;
1118

1219
&-inline {
1320
position: absolute;
1421
}
1522

1623
&-mask {
24+
.inset-0;
1725
position: absolute;
1826
z-index: @zIndex;
1927
background: rgba(0, 0, 0, 0.5);
2028
pointer-events: auto;
21-
inset: 0;
2229
}
2330

2431
&-content-wrapper {

0 commit comments

Comments
 (0)