feat(git): make the repository switcher responsive (#1130)
Keep the contributor label work but place the control above Changes per the product decision: chips at natural width while every root fits, one native select once it does not. A hidden measurement row makes the decision content-driven; the More -> Repository submenu stays as the folded fallback.
This commit is contained in:
1 parent
da860d9aef
commit
83a25c27bc
9 files changed
+350
-113
No files matched your search
@@ -1,11 +1,6 @@
|
||||
.root { display: flex; flex: 1; flex-direction: column; min-height: 0; min-width: 0; font: var(--dsw-font-xxs-12); color: var(--dsw-alias-label-primary); }
|
||||
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 12px; }
|
||||
.select { flex: 1; min-width: 0; max-width: 100%; height: 28px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 3px; background: var(--dsw-alias-bg-base); color: var(--dsw-alias-label-primary); font: inherit; }
|
||||
/* The multi-repo picker slots in ahead of the branch filter so the toolbar
|
||||
reads as one scope row — root first, then its history filter. The slot
|
||||
flexes like .select, so both boxes share the row instead of stacking. */
|
||||
.repoPick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
|
||||
.repoPickLabel { flex: none; white-space: nowrap; font: var(--dsw-font-xxs-strong-12); color: var(--dsw-alias-label-primary); }
|
||||
.hint { color: var(--dsw-alias-label-secondary); font: var(--dsw-font-xxxs-11); }
|
||||
.scroll { flex: 1; min-height: 0; overflow: auto; }
|
||||
/* A commit row is ONE 28px line — rail, ref pills, subject (the GitLens-style
|
||||
|
||||
Reference in new issue
Block a user