💄 Drawer with percentage width cannot show when no mask (#23925)

close #23910
This commit is contained in:
偏右 2020-05-07 11:38:51 +08:00 committed by GitHub
parent ee80a2f710
commit 2ba90f7ff5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,8 +3,6 @@
@drawer-prefix-cls: ~'@{ant-prefix}-drawer';
@picker-prefix-cls: ~'@{ant-prefix}-picker';
.@{drawer-prefix-cls} {
@drawer-header-close-padding: ceil((@drawer-header-close-size - @font-size-lg) / 2);
@ -40,7 +38,11 @@
transition: transform @animation-duration-slow @ease-base-out;
}
&.@{drawer-prefix-cls}-open.no-mask {
width: 0%;
height: 0%;
.@{drawer-prefix-cls}-content-wrapper {
height: 100vh;
}
}
}
@ -94,7 +96,11 @@
transition: transform @animation-duration-slow @ease-base-out;
}
&.@{drawer-prefix-cls}-open.no-mask {
height: 0%;
width: 0%;
.@{drawer-prefix-cls}-content-wrapper {
width: 100vw;
}
}
}