Skip to content

fix: add left padding to SCM file tree items (#234083)#308024

Open
yogeshwaran-c wants to merge 1 commit intomicrosoft:mainfrom
yogeshwaran-c:fix/scm-file-tree-left-margin
Open

fix: add left padding to SCM file tree items (#234083)#308024
yogeshwaran-c wants to merge 1 commit intomicrosoft:mainfrom
yogeshwaran-c:fix/scm-file-tree-left-margin

Conversation

@yogeshwaran-c
Copy link
Copy Markdown
Contributor

@yogeshwaran-c yogeshwaran-c commented Apr 6, 2026

Summary

  • Adds 2px of left padding to SCM tree content elements (.scm-view .monaco-tl-contents > div) so file names have breathing room from the tree indent guide vertical lines
  • Previously, file tree items in the SCM Changes view were rendered flush against the indent guides, which looked aesthetically off (as reported in the issue)
  • The fix is a minimal CSS change that improves the visual spacing without affecting layout or functionality

Fixes #234083

Test plan

  • Open a Git repository in VS Code
  • Open the Source Control view and ensure changes are visible in tree view mode
  • Verify file names in the tree have a small gap from the indent guide vertical lines
  • Compare with the explorer tree view to confirm similar visual spacing

@vs-code-engineering
Copy link
Copy Markdown
Contributor

vs-code-engineering Bot commented Apr 6, 2026

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@lszomoru

Matched files:

  • src/vs/workbench/contrib/scm/browser/media/scm.css

…indent guides

Fixes microsoft#234083

The file tree items in the SCM Changes view were rendered too close to
the tree indent guide vertical lines, making the view less aesthetically
pleasing. Added 2px of left padding to the tree content elements to
provide breathing room between the indent guides and file names.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SCM - Add margin in file tree

2 participants