merge #1112: feat(git) 容器工作区在 Git 面板顶部显示全部子仓库并可切换(#988 可见性后续)
# Conflicts: # CHANGELOG.md
This commit is contained in:
commit
85593d4769
5 files changed
+185
No files matched your search
@@ -58,6 +58,48 @@
|
||||
.scmHeader:hover .scmActions, .scmHeader:focus-within .scmActions { opacity: 1; }
|
||||
@media (hover: none) { .scmActions { opacity: 1; } }
|
||||
|
||||
/* Child repositories of a workspace container: every view in this panel is
|
||||
pinned to ONE root, so the switcher is the only surface that says the others
|
||||
exist. One band above the sections, one chip per discovered root; it scrolls
|
||||
sideways rather than wrapping so a deep root list cannot push the changes
|
||||
away from the top of the pane. */
|
||||
.repoSwitcher {
|
||||
flex: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
padding: 0 6px 2px;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
.repoSwitcher::-webkit-scrollbar { display: none; }
|
||||
.repoChip {
|
||||
flex: none;
|
||||
max-width: 160px;
|
||||
min-height: 22px;
|
||||
padding: 2px 8px;
|
||||
border: 1px solid var(--dsw-alias-border-l1);
|
||||
border-radius: 3px;
|
||||
background: transparent;
|
||||
color: var(--dsw-alias-label-secondary);
|
||||
font: var(--dsw-font-xxxs-11);
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
cursor: pointer;
|
||||
}
|
||||
.repoChip:hover:not(:disabled) { background: var(--dsw-alias-interactive-bg-hover); }
|
||||
.repoChip[data-active='true'] {
|
||||
border-color: var(--dsw-alias-border-l2);
|
||||
background: var(--dsw-alias-interactive-bg-hover-accent);
|
||||
color: var(--dsw-alias-label-primary);
|
||||
}
|
||||
.repoChip:disabled { opacity: 0.45; cursor: default; }
|
||||
.repoChip: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
|
||||
tab — the branch control must never leave the bottom of the pane.
|
||||
|
||||
Reference in new issue
Block a user