style(git): align the repository picker with sibling controls and drop the redundant submenu
The picker label now uses the section-header face (matching 更改/提交图) and the select mirrors the graph toolbar branch filter. The More-actions Repository submenu is removed: the standalone picker owns repository switching, and branch filtering already lives under the graph toolbar.
This commit is contained in:
1 parent
ea770cc2e1
commit
3590ec9c53
6 files changed
+26
-39
No files matched your search
@@ -62,16 +62,18 @@
|
||||
pinned to ONE root, so the picker is the only surface that names the current
|
||||
one and lists the others one click away. A labeled select scales to any
|
||||
number of discovered roots in a single compact band — a chip per root does
|
||||
not, once location labels distinguish same-named checkouts. */
|
||||
not, once location labels distinguish same-named checkouts. The label
|
||||
mirrors the section headers; the box mirrors the graph's branch select. */
|
||||
.repoPick {
|
||||
flex: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
padding: 0 6px 2px;
|
||||
color: var(--dsw-alias-label-secondary);
|
||||
font: var(--dsw-font-xxxs-11);
|
||||
min-height: 28px;
|
||||
padding: 0 6px;
|
||||
font: var(--dsw-font-xxs-strong-12);
|
||||
color: var(--dsw-alias-label-primary);
|
||||
cursor: pointer;
|
||||
}
|
||||
.repoPickLabel { flex: none; white-space: nowrap; }
|
||||
@@ -79,19 +81,13 @@
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
height: 22px;
|
||||
padding: 0 4px;
|
||||
border: 1px solid var(--dsw-alias-border-l1);
|
||||
height: 28px;
|
||||
border: 1px solid var(--dsw-alias-border-l2);
|
||||
border-radius: 3px;
|
||||
background: transparent;
|
||||
background: var(--dsw-alias-bg-base);
|
||||
color: var(--dsw-alias-label-primary);
|
||||
font: var(--dsw-font-xxxs-11);
|
||||
text-overflow: ellipsis;
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
}
|
||||
.repoPickSelect:hover:not(:disabled) { border-color: var(--dsw-alias-border-l2); background: var(--dsw-alias-interactive-bg-hover); }
|
||||
.repoPickSelect:disabled { opacity: 0.45; cursor: default; }
|
||||
.repoPickSelect:focus-visible { outline: 2px solid var(--dsw-alias-interactive-bg-hover-accent); outline-offset: -2px; }
|
||||
|
||||
/* 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
|
||||
|
||||
Reference in new issue
Block a user