From e8ca05094b0170b73cd94941e6015e6b1c5dff02 Mon Sep 17 00:00:00 2001 From: zsmj Date: Wed, 24 Aug 2022 17:04:31 +0800 Subject: [PATCH] =?UTF-8?q?DESIGN-4402=20fix:=20=E5=A4=8D=E9=80=89?= =?UTF-8?q?=E6=A0=91=E8=A7=86=E8=A7=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/less/base/tree/ztree.less | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/src/less/base/tree/ztree.less b/src/less/base/tree/ztree.less index c4a8b6097..9291efa27 100644 --- a/src/less/base/tree/ztree.less +++ b/src/less/base/tree/ztree.less @@ -79,16 +79,14 @@ vertical-align: top; display: inline-block; - .tree-node-text { - &:not(.disabled) { - &:hover { - .background-color(@color-bi-background-highlight, 10%); - } + &:not(.disabled) { + &:hover { + .background-color(@color-bi-background-highlight, 10%); + } - &:active { - color: @color-bi-text-highlight; - .background-color(@color-bi-background-highlight, 15%); - } + &:active { + color: @color-bi-text-highlight; + .background-color(@color-bi-background-highlight, 15%); } } } @@ -150,17 +148,12 @@ .ztree li span.icon { display: inline-block; - vertical-align: top; text-align: center; - width: 24px; - height: 24px; - line-height: 24px; -} - -.ztree li span.icon { - width: 32px; - height: 32px; - line-height: 32px; + width: 16px; + height: 16px; + line-height: 16px; + padding: 0 2px; + vertical-align: middle; } .ztree li span.button {