Skip to content

Commit

Permalink
* tree: optimize nested tree style.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Dec 7, 2023
1 parent 217e272 commit aa73b77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/tree/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ onPageUpdate(() => {
collapsedIcon: 'folder-close',
expandedIcon: 'folder-open',
normalIcon: 'file-o',
hover: true,
defaultNestedShow: true,
checkOnClick: true,
activeOnHover: true,
preserve: 'myTree',
itemActions: {
items: [
Expand Down
2 changes: 1 addition & 1 deletion lib/tree/src/style/tree.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Tree content. */
.tree-item-inner {
@apply -flex -flex-row -items-center -min-h-[24px] -pl-[--list-nested-indent];
@apply -flex -flex-row -items-center -min-h-[24px];
}

/* Toggle icon. */
Expand Down

0 comments on commit aa73b77

Please sign in to comment.