fix(git): drop the redundant untracked note, square the count pill, pin the footer

The U badge already says a row is untracked, so the extra 新文件 note is a second label for the same fact; git never diffs those rows and the binary mark still covers blobs. The group count pill now takes the kit's sm control radius (--dsw-radius-sm) instead of a 20px circle. The branch/sync footer keeps its flex docking and is additionally sticky bottom:0, so a host tab body that scrolls the whole tab cannot carry the branch control off the bottom of the pane (#941).
This commit is contained in:
hairyf committed 2026-10-13 23:13:00 +08:00
1 parent 1685e10d01
commit 4e1056fe66
4 files changed
+24 -20

No files matched your search

+8 -3
View File
@@ -46,7 +46,10 @@
.scmHeader:hover .scmActions, .scmHeader:focus-within .scmActions { opacity: 1; }
@media (hover: none) { .scmActions { opacity: 1; } }
.gitFooter { flex: none; min-width: 0; border-top: 1px solid var(--dsw-alias-border-l1); background: var(--dsw-alias-bg-base); }
/* Docked by the flex column above (a sibling of `.gitScroll`), plus sticky so
it also survives the case where the host tab body itself scrolls the whole
tab — the branch control must never leave the bottom of the pane. */
.gitFooter { flex: none; min-width: 0; position: sticky; bottom: 0; z-index: 1; border-top: 1px solid var(--dsw-alias-border-l1); background: var(--dsw-alias-bg-base); }
.footerRow { display: flex; align-items: center; min-width: 0; min-height: 28px; }
.branchMenu { display: flex; flex: 1; min-width: 0; }
.branchButton, .syncButton { display: flex; align-items: center; gap: 5px; min-width: 0; min-height: 28px; padding: 3px 8px; border: none; background: transparent; color: var(--dsw-alias-label-secondary); font: var(--dsw-font-xxxs-11); cursor: pointer; }
@@ -75,12 +78,14 @@
background: var(--dsw-alias-bg-base);
}
/* Group counts match the action height; directory rows need no badge. */
/* Group counts match the action height and the neighbouring header controls'
corner radius (the host kit's `size="sm"` buttons use `--dsw-radius-sm`);
directory rows need no badge. */
.countPill {
flex: none;
width: 20px;
height: 20px;
border-radius: 50%;
border-radius: var(--dsw-radius-sm);
background: var(--dsw-alias-interactive-bg-hover);
color: var(--dsw-alias-label-secondary);
font: var(--dsw-font-xxxs-strong-11);