diff --git a/web/ASC.Web.Components/src/components/tree-menu/index.js b/web/ASC.Web.Components/src/components/tree-menu/index.js index 330732be50..ce7927f481 100644 --- a/web/ASC.Web.Components/src/components/tree-menu/index.js +++ b/web/ASC.Web.Components/src/components/tree-menu/index.js @@ -6,8 +6,7 @@ import Tree from 'rc-tree'; const StyledTreeMenu = styled(Tree)` margin: 0; - padding: 5px; - + padding: 0; &:not(.rc-tree-show-line) .rc-tree-switcher-noop { background: none; @@ -53,12 +52,12 @@ const StyledTreeMenu = styled(Tree)` margin-right: 2px; vertical-align: top; } - ${props => props.switcherIcon != null ? + ${props => props.switcherIcon != null ? css` li span.rc-tree-switcher{ background: none; } - ` + ` : '' } @@ -66,9 +65,9 @@ const StyledTreeMenu = styled(Tree)` const TreeMenu = props => { //console.log("TreeMenu render"); - const { defaultExpandAll, defaultExpandParent, showIcon, showLine, multiple, disabled, draggable, checkable, children, switcherIcon, icon, - onDragStart, onDrop, onSelect, onDragEnter, onDragEnd, onDragLeave, onDragOver, onCheck, onExpand, onLoad, onMouseEnter, onMouseLeave, onRightClick, - defaultSelectedKeys, defaultExpandedKeys, defaultCheckedKeys, selectedKeys} = props; + const { defaultExpandAll, defaultExpandParent, showIcon, showLine, multiple, disabled, draggable, checkable, children, switcherIcon, icon, + onDragStart, onDrop, onSelect, onDragEnter, onDragEnd, onDragLeave, onDragOver, onCheck, onExpand, onLoad, onMouseEnter, onMouseLeave, onRightClick, + defaultSelectedKeys, defaultExpandedKeys, defaultCheckedKeys, selectedKeys, className } = props; const onTreeNodeSelect = (data, e) => { const result = e.selected ? data : [e.node.props.eventKey]; @@ -76,38 +75,39 @@ const TreeMenu = props => { } return ( {children} @@ -133,7 +133,7 @@ TreeMenu.propTypes = { PropTypes.arrayOf(PropTypes.node), PropTypes.node ]) - + } export default TreeMenu \ No newline at end of file