From 47d4eeaa8e37fd1751d2211fd4b7c9cd09591d35 Mon Sep 17 00:00:00 2001 From: yuuk <645481746@qq.com> Date: Mon, 7 Nov 2022 10:20:01 +0800 Subject: [PATCH] fix: inset compatibility (#345) --- assets/index.less | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/assets/index.less b/assets/index.less index d36d096a..be31bcbd 100755 --- a/assets/index.less +++ b/assets/index.less @@ -3,22 +3,29 @@ @prefixCls: rc-drawer; @zIndex: 1050; +.inset-0() { + top: 0; + bottom: 0; + left: 0; + right: 0; +} + .@{prefixCls} { + .inset-0; position: fixed; z-index: @zIndex; pointer-events: none; - inset: 0; &-inline { position: absolute; } &-mask { + .inset-0; position: absolute; z-index: @zIndex; background: rgba(0, 0, 0, 0.5); pointer-events: auto; - inset: 0; } &-content-wrapper {