From 8ecce20b449daae754b1b2249635f796ac249728 Mon Sep 17 00:00:00 2001 From: rickcole Date: Fri, 6 Sep 2019 15:23:06 +0800 Subject: [PATCH] fix nested-select style --- scss/components/form/_nested-select.scss | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/scss/components/form/_nested-select.scss b/scss/components/form/_nested-select.scss index 4f867f20f..f58feaf5f 100644 --- a/scss/components/form/_nested-select.scss +++ b/scss/components/form/_nested-select.scss @@ -73,22 +73,13 @@ } &-optionArrowRight { - width: px2rem(32px); - height: $Form-input-height; - line-height: $Form-input-height; - cursor: pointer; - float: right; - text-align: center; - position: relative; + display: inline-block; + position: absolute; + right: px2rem(10px); svg { width: px2rem(12px); height: px2rem(12px); - position: absolute; - top: 50%; - left: 50%; - right: 50%; - transform: translate(-50%, -50%); fill: $Form-input-iconColor; } } @@ -103,6 +94,7 @@ box-shadow: $Form-select-outer-boxShadow; .#{$ns}NestedSelect-option { + position: relative; padding-left: px2rem(10px); height: $Form-input-height; line-height: $Form-input-height;