diff --git a/client/containers/Project/Interface/InterfaceList/InterfaceMenu.js b/client/containers/Project/Interface/InterfaceList/InterfaceMenu.js index 2172e089..2b84bdfe 100644 --- a/client/containers/Project/Interface/InterfaceList/InterfaceMenu.js +++ b/client/containers/Project/Interface/InterfaceList/InterfaceMenu.js @@ -359,7 +359,7 @@ class InterfaceMenu extends Component { } key={'cat_' + item._id} - className="interface-item-nav" + className={`interface-item-nav ${item.list.length?"":"cat_switch_hidden"}`} > {item.list.map(item_interface_create)} diff --git a/client/containers/Project/Interface/interface.scss b/client/containers/Project/Interface/interface.scss index 15727374..de973ccf 100644 --- a/client/containers/Project/Interface/interface.scss +++ b/client/containers/Project/Interface/interface.scss @@ -51,6 +51,13 @@ background-color: #efefef } .interface-list{ + .cat_switch_hidden{ + .ant-tree-switcher{ + visibility: hidden; + } + } + + a{ color: #333 } @@ -85,7 +92,7 @@ } } } - + .right-content{ margin:3px; min-height: 5rem;