feat(vcs): mark the current worktree in the Worktrees list (#1506)

The worktree whose path is the window's repository root gets a check before its branch (Current worktree); drive paths compare case-insensitively. Branch names keep their width and the path is cut short instead.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-05 16:15:10 +08:00
1 джерело 2924824e7b
коміт 945f09347e
5 files changed
+53 -2

No files matched your search

+12
Переглянути файл
@@ -305,6 +305,18 @@
.manageRowSelected:hover {
background: var(--bg-list-selected);
}
/* A fixed slot, so the names line up whether or not a row is marked. */
.worktreeMark {
display: flex;
flex: none;
width: 14px;
margin-right: -4px;
}
/* The branch keeps its width; the path is what gets cut short. */
.worktreeName {
flex: none;
max-width: 40%;
}
.comparisonDialog > [data-dialog-body] {
display: flex;