File tree Expand file tree Collapse file tree
client/packages/lowcoder/src/comps/comps/navComp/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,21 +21,21 @@ const Wrapper = styled.div`
2121 }
2222` ;
2323
24+ const StyledTreeItem = styled . div `
25+ .dnd-sortable-tree_simple_tree-item {
26+ padding: 5px;
27+ border-radius: 4px;
28+ &:hover {
29+ background-color: #f5f5f6;
30+ }
31+ }
32+ ` ;
33+
2434const TreeItemContent = styled . div `
2535 display: flex;
2636 align-items: center;
2737 width: 100%;
28- height: 30px;
29- background-color: #ffffff;
30- border: 1px solid #d7d9e0;
31- border-radius: 4px;
32- padding: 0 8px;
3338 box-sizing: border-box;
34- gap: 8px;
35-
36- &:hover {
37- border-color: #315efb;
38- }
3939` ;
4040
4141// Context for passing handlers to tree items
@@ -71,6 +71,7 @@ const NavTreeItemComponent = React.forwardRef<
7171 } ;
7272
7373 return (
74+ < StyledTreeItem >
7475 < SimpleTreeItemWrapper
7576 { ...rest }
7677 ref = { ref }
@@ -87,6 +88,7 @@ const NavTreeItemComponent = React.forwardRef<
8788 />
8889 </ TreeItemContent >
8990 </ SimpleTreeItemWrapper >
91+ </ StyledTreeItem >
9092 ) ;
9193} ) ;
9294
@@ -187,7 +189,7 @@ function MenuItemList(props: IMenuItemListProps) {
187189 </ LinkPlusButton >
188190 </ div >
189191 < div className = "menu-list" >
190- < ScrollBar style = { { maxHeight : "200px " } } >
192+ < ScrollBar style = { { maxHeight : "300px " } } >
191193 < MenuItemHandlersContext . Provider value = { handlers } >
192194 < SortableTree
193195 items = { treeItems }
You can’t perform that action at this time.
0 commit comments