File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
src/view/components/elements Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 6565 left : 100% ;
6666 top : 0 ;
6767 bottom : 0 ;
68- width : 100 % ;
68+ width : 100 vw ;
6969}
7070
7171.tree : focus-within .item [data-selected ]::after {
Original file line number Diff line number Diff line change @@ -55,13 +55,11 @@ export function TreeView() {
5555 setMaxIndent ( current ) ;
5656 }
5757
58- let indent =
58+ const indent =
5959 current - Math . round ( ( diff / ( treeDepth || 1 ) ) * 100 ) / 100 ;
60- if ( maxIndent > 0 ) {
61- indent = Math . min ( maxIndent , indent ) ;
62- }
60+ const clamped = Math . min ( maxIndent > 0 ? maxIndent : current , indent ) ;
6361
64- ref . current . style . setProperty ( "--indent-depth" , `${ indent } px` ) ;
62+ ref . current . style . setProperty ( "--indent-depth" , `${ clamped } px` ) ;
6563 }
6664 }
6765 } , [ nodeList , updateCount ] ) ;
You can’t perform that action at this time.
0 commit comments