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 8, 2022
1 parent e5a0aaa commit 3ce163e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,9 @@ export class FileTreeWidget extends CompressedTreeWidget {
}
return inflated;
}

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)
return (depth + 1) * this.props.leftPadding;
}
}

0 comments on commit 3ce163e

Please sign in to comment.