Skip to content

Commit

Permalink
fix(QTree): padding on root nodes without children in dense mode #11498
Browse files Browse the repository at this point in the history
… (#11569)
  • Loading branch information
rstoenescu committed Dec 6, 2021
1 parent 193c44b commit ab4ecb4
Showing 1 changed file with 45 additions and 41 deletions.
86 changes: 45 additions & 41 deletions ui/src/components/tree/QTree.sass
Original file line number Diff line number Diff line change
Expand Up @@ -132,47 +132,51 @@
.q-tree__node-body:after
display: none !important

&--dense .q-tree
&__arrow,
&__spinner
margin-right: 1px

&__img
height: 32px

&__tickbox
margin-right: 3px

&__node
padding: 0
&:after
top: 0
left: -8px

&__node-header
margin-top: 0
padding: 1px
&:before
top: 0
left: -8px
width: 8px

&__node--child
padding-left: 17px
> .q-tree__node-header:before
left: -25px
width: 21px

&__node-body
padding: 0 0 2px

&__node--parent > .q-tree__node-collapsible > .q-tree__node-body
padding: 0 0 2px 20px
&:after
left: 8px

&__children
padding-left: 16px
&--dense
> .q-tree__node--child > .q-tree__node-header
padding-left: 1px

.q-tree
&__arrow,
&__spinner
margin-right: 1px

&__img
height: 32px

&__tickbox
margin-right: 3px

&__node
padding: 0
&:after
top: 0
left: -8px

&__node-header
margin-top: 0
padding: 1px
&:before
top: 0
left: -8px
width: 8px

&__node--child
padding-left: 17px
> .q-tree__node-header:before
left: -25px
width: 21px

&__node-body
padding: 0 0 2px

&__node--parent > .q-tree__node-collapsible > .q-tree__node-body
padding: 0 0 2px 20px
&:after
left: 8px

&__children
padding-left: 16px

[dir=rtl]
.q-tree__arrow
Expand Down

0 comments on commit ab4ecb4

Please sign in to comment.