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 Jan 12, 2023
1 parent ad10c2d commit a39e664
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,6 @@ export class FileTreeWidget extends CompressedTreeWidget {

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

0 comments on commit a39e664

Please sign in to comment.