diff --git a/frontend/src/components/tree-section/index.css b/frontend/src/components/tree-section/index.css index e52b2e0e6f..9658a94360 100644 --- a/frontend/src/components/tree-section/index.css +++ b/frontend/src/components/tree-section/index.css @@ -3,7 +3,7 @@ flex-direction: column; width: 100%; height: auto; - padding: 0 8px; + padding: 0 16px; margin-top: 10px; } @@ -91,6 +91,30 @@ } .tree-section .tree-section-body .tree-view { - padding-top: 0; - padding-bottom: 0; + margin-left: 0px; + padding: 0px; +} + +.tree-section .tree-section-body .right-icon { + width: 20px; + height: 20px; + top: 4px; + display: flex; + justify-content: center; + align-items: center; +} + +.tree-section .tree-section-body .right-icon:hover { + background-color: #DBDBDB; + cursor: pointer; + border-radius: 3px; +} + +.tree-section .tree-section-body .right-icon i { + margin-left: 0; +} + +.tree-section .tree-section-body .sf-dropdown-toggle:focus, +.tree-section .tree-section-body .sf-dropdown-toggle:hover { + color: #999; } diff --git a/frontend/src/components/tree-view/tree-node-view.js b/frontend/src/components/tree-view/tree-node-view.js index 057c967bc6..c383e81bc4 100644 --- a/frontend/src/components/tree-view/tree-node-view.js +++ b/frontend/src/components/tree-view/tree-node-view.js @@ -5,11 +5,13 @@ import TextTranslation from '../../utils/text-translation'; import ItemDropdownMenu from '../dropdown-menu/item-dropdown-menu'; import { Utils } from '../../utils/utils'; +const LEFT_INDENT = 20; + const propTypes = { userPerm: PropTypes.string, node: PropTypes.object.isRequired, currentPath: PropTypes.string.isRequired, - paddingLeft: PropTypes.number.isRequired, + leftIndent: PropTypes.number.isRequired, isNodeMenuShow: PropTypes.bool.isRequired, isItemFreezed: PropTypes.bool.isRequired, onNodeClick: PropTypes.func.isRequired, @@ -234,18 +236,18 @@ class TreeNodeView extends React.Component { }; renderChildren = () => { - let { node, paddingLeft } = this.props; + let { node } = this.props; if (!node.hasChildren()) { return ''; } return ( -