From f1ecaf27e66e4cea5d0e356eff36472b0fa46aaa Mon Sep 17 00:00:00 2001 From: Sxs7513 <526015242@qq.com> Date: Mon, 20 Jun 2022 11:37:25 +0800 Subject: [PATCH] fix(floatPanel): wrapper css add width:100% (#150) Co-authored-by: xinshu.sxs --- demo/pages/FloatPanel/index.acss | 5 ----- demo/pages/FloatPanelEvent/index.acss | 5 ----- src/FloatPanel/index.less | 3 ++- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/demo/pages/FloatPanel/index.acss b/demo/pages/FloatPanel/index.acss index 74519fa72..50d64ffb6 100644 --- a/demo/pages/FloatPanel/index.acss +++ b/demo/pages/FloatPanel/index.acss @@ -54,11 +54,6 @@ } .wrapper { - position: fixed; - z-index: 999; - bottom: 0; - width: 100%; - background-color: transparent; } .wrapper .amd-swiper-section { diff --git a/demo/pages/FloatPanelEvent/index.acss b/demo/pages/FloatPanelEvent/index.acss index 74519fa72..50d64ffb6 100644 --- a/demo/pages/FloatPanelEvent/index.acss +++ b/demo/pages/FloatPanelEvent/index.acss @@ -54,11 +54,6 @@ } .wrapper { - position: fixed; - z-index: 999; - bottom: 0; - width: 100%; - background-color: transparent; } .wrapper .amd-swiper-section { diff --git a/src/FloatPanel/index.less b/src/FloatPanel/index.less index 43aa8eb08..1fefab921 100644 --- a/src/FloatPanel/index.less +++ b/src/FloatPanel/index.less @@ -4,9 +4,10 @@ background-color: transparent; transition : all .2s; overflow : hidden; - z-index : 1; + z-index : 999; position: fixed; bottom: 0; + width: 100%; .amd-floatpanel-arrow-wrapper { padding-bottom : 12 * @rpx;