Skip to content

Commit

Permalink
Explorer: added styling for nodes at root
Browse files Browse the repository at this point in the history
 of workspace

Added a tabbing for the child nodes of a root, to have a visual
 difference and avoid confusion
  • Loading branch information
Estelle Foisy committed Dec 12, 2022
1 parent 91ea2a5 commit 09ca451
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export class FileTreeWidget extends CompressedTreeWidget {
}

protected override getDepthPadding(depth: number): number {
// add additional extra depth so file nodes are rendered with padding in relation to the top level root node (to properly differentiate items in the tree)
// add additional depth so file nodes are rendered with padding in relation to the top level root node.
return (depth + 1) * this.props.leftPadding;
}
}

0 comments on commit 09ca451

Please sign in to comment.