From 23b5d0cb2dd99256a71c2f7b6ef9103e9696a808 Mon Sep 17 00:00:00 2001 From: buqiyuan <1743369777@qq.com> Date: Fri, 15 Jul 2022 16:27:59 +0800 Subject: [PATCH] fix: tree node css style --- .../api-script/api-script.component.scss | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/src/workbench/browser/src/app/shared/components/api-script/api-script.component.scss b/src/workbench/browser/src/app/shared/components/api-script/api-script.component.scss index 41432d722..7056b13be 100644 --- a/src/workbench/browser/src/app/shared/components/api-script/api-script.component.scss +++ b/src/workbench/browser/src/app/shared/components/api-script/api-script.component.scss @@ -1,8 +1,24 @@ .eo-api-script { - ::ng-deep .ant-tree-indent { + ::ng-deep .ant-tree-indent { width: 20px; } - ::ng-deep .ant-tree-switcher { - // width: 0; + ::ng-deep .ant-tree-switcher { + width: 0; + } + ::ng-deep .ant-tree-treenode-switcher-open { + .ant-tree-indent { + width: 0; + } + .ant-tree-switcher { + width: 20px; + } + } + ::ng-deep .ant-tree-treenode-switcher-close { + .ant-tree-indent { + width: 0; + } + .ant-tree-switcher { + width: 20px; + } } }