From 07e4b9c0aa2668ffeb86a34c358078b6f11a9aa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Wed, 4 Sep 2019 20:56:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96layer=E5=9C=A8=E7=89=B9?= =?UTF-8?q?=E6=AE=8A=E5=9C=BA=E6=99=AF=E4=B8=8B=E7=9A=84=E5=AE=9A=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layer/index.wc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/layer/index.wc b/src/layer/index.wc index 8882e85..22cd753 100644 --- a/src/layer/index.wc +++ b/src/layer/index.wc @@ -10,8 +10,11 @@ display: none; justify-content: center; align-items: center; - width: auto; - height: auto; + position: fixed; + z-index: 65534; + left: 0; + top: 0; + width: 100%; } :host([alert]), :host([confirm]), @@ -187,11 +190,6 @@ } :host([mask]) { - position: fixed; - z-index: 65534; - left: 0; - top: 0; - width: 100%; height: 100%; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(5px);