workspace-groups-remote/src/client/styles.css

1462 lines
29 KiB
CSS

.wgRoot {
box-sizing:border-box;
flex-direction:column;
flex:1;
width:100%;
min-width:0;
min-height:0;
display:flex;
overflow:hidden;
}
.wgSectionHeader {
flex:none;
align-items:center;
gap:4px;
height:36px;
padding:0 12px;
display:flex;
}
.wgSectionLabel {
text-overflow:ellipsis;
white-space:nowrap;
min-width:0;
max-width:45%;
color:var(--dsw-fg-1,inherit);
flex:none;
font-size:12px;
font-weight:600;
overflow:hidden;
}
.wgIconButton {
width:26px;
height:26px;
color:var(--dsw-fg-2,inherit);
cursor:pointer;
background:0 0;
border:none;
border-radius:6px;
justify-content:center;
align-items:center;
padding:0;
display:inline-flex;
}
.wgIconButton:hover {
background:var(--dsw-bg-hover,#7f7f7f1f);
color:var(--dsw-fg-1,inherit);
}
.wgIconButton:disabled {
opacity:.5;
cursor:default;
}
.wgSearch {
flex:1;
align-items:center;
min-width:0;
max-width:28px;
margin-left:auto;
transition:max-width .18s;
display:flex;
}
.wgSearchExpanded {
max-width:100%;
}
.wgSearchInput {
min-width:0;
color:var(--dsw-fg-1,inherit);
background:0 0;
border:none;
outline:none;
flex:1;
padding:0;
font-size:12px;
}
.wgTreeBody {
flex:1;
min-width:0;
min-height:0;
padding:0 8px 8px;
overflow-x:hidden;
overflow-y:auto;
}
/* Bottom dock: the "not classified yet" bucket and the Host default workspace
sit outside the tree's scroll area, so a long session list can never push
them away. The dock owns the divider against the tree; the default-workspace
bar adds a second one only when the bucket sits above it.
The dock is bounded: it never grows past its cap, and it never shrinks below
the height of its own rows. Only the expanded session list gives up height
and scrolls, so no row is ever cut in half (a halved row reads as an overlap)
and nothing from the tree is painted underneath the dock. */
.wgDock {
flex:0 1 auto;
min-width:0;
/* A plain pixel floor (bucket row + workspace row + padding). A content-based
floor would outweigh max-height, letting the dock grow to the whole session
list and swallow the tree, so the floor stays a fixed length. */
min-height:84px;
max-height:min(62vh,560px);
display:flex;
flex-direction:column;
overflow:hidden;
border-top:1px solid var(--dsw-alias-border-l2,#7f7f7f47);
}
/* The docked bucket never gives up height: it must be able to open its own
children (a shrinkable bucket stays one row tall however far it is expanded,
which reads as "cannot expand"). Past its cap it scrolls, so a big pile still
cannot swallow the tree; the session list below is what gives way. */
.wgDockBucket {
flex:0 0 auto;
min-width:0;
min-height:0;
max-height:min(26vh,200px);
padding:4px 8px 0;
overflow-x:hidden;
overflow-y:auto;
}
.wgDockBucket + .wgDefaultWorkspaceBar {
border-top:1px solid var(--dsw-alias-border-l2,#7f7f7f47);
}
.wgRail .wgDock {
display:none;
}
.wgDefaultWorkspaceBar {
flex:1 1 auto;
min-width:0;
min-height:0;
display:flex;
flex-direction:column;
overflow:hidden;
padding:6px 8px 8px;
}
/* The workspace row stays put; its expanded sessions scroll under it. */
.wgDockSessions {
flex:1 1 auto;
min-width:0;
min-height:0;
/* A share of its own, not "whatever is left": with the tree and the bucket
also expanded, the session list stops growing at about a third of the
sidebar and scrolls instead of pushing the other two out of view. */
max-height:min(26vh,400px);
overflow-x:hidden;
overflow-y:auto;
}
.wgDefaultWorkspaceBar .wgProjectRow {
flex:none;
margin-bottom:2px;
}
/* Every nesting container must be allowed to shrink below its min-content
width. Otherwise a long title expands the grid track and pushes the action
column beyond the visible scrollport, even though the title has ellipsis. */
.wgTreeWrap,.wgList,.wgRows,.wgRowsInner,.wgTreeChildren {
min-width:0;
max-width:100%;
}
.wgCategoryRow,.wgProjectRow,.wgFolderRow,.wgSessionRow {
box-sizing:border-box;
width:100%;
min-width:0;
max-width:100%;
}
/* Indentation belongs only on the left; all trailing action buttons share
the same right inset, independent of title length and nesting depth. */
.wgRowActions:last-child {
margin-left:auto;
}
.wgList {
flex-direction:column;
gap:1px;
display:flex;
}
.wgEmpty {
text-align:center;
color:var(--dsw-fg-3,#7f7f7fcc);
padding:16px 8px;
font-size:12px;
}
.wgCategoryRow {
cursor:pointer;
user-select:none;
border-radius:6px;
align-items:center;
gap:4px;
height:28px;
padding:0 4px;
display:flex;
position:relative;
}
/* Palette: one custom property per colour id, shared by the group row and the
appearance picker swatches. An uncoloured group never gets data-wg-color, so
existing overlays render byte-identically. */
[data-wg-color=red]{--wg-group-tint:#d9534f}
[data-wg-color=orange]{--wg-group-tint:#e08a3c}
[data-wg-color=amber]{--wg-group-tint:#d9a521}
[data-wg-color=green]{--wg-group-tint:#3fa45b}
[data-wg-color=teal]{--wg-group-tint:#2f9e93}
[data-wg-color=blue]{--wg-group-tint:#4a90d9}
[data-wg-color=indigo]{--wg-group-tint:#5b6fd6}
[data-wg-color=purple]{--wg-group-tint:#9a63c9}
[data-wg-color=pink]{--wg-group-tint:#d4659c}
[data-wg-color=gray]{--wg-group-tint:#8a8a8a}
/* inset shadow instead of a new element: no layout shift, no clash with the
drag insert-line pseudo-elements above. */
.wgCategoryRow[data-wg-color] {
box-shadow:inset 2px 0 0 var(--wg-group-tint);
}
.wgCategoryRow[data-wg-color] .wgCategoryIcon {
color:var(--wg-group-tint);
}
.wgCategoryRow:hover {
background:var(--dsw-bg-hover,#7f7f7f1f);
}
.wgCategoryRow:hover .wgRowActions,.wgCategoryRow:focus-within .wgRowActions {
opacity:1;
}
.wgDropTarget {
background:var(--dsw-bg-selected,#4a90d92e);
outline:1px dashed var(--dsw-accent,#4a90d9);
outline-offset:-1px;
}
.wgInsertBefore:before,.wgInsertAfter:after {
content:"";
background:var(--dsw-accent,#4a90d9);
height:2px;
box-shadow:0 0 0 1px color-mix(in srgb, var(--dsw-accent,#4a90d9) 25%, transparent);
pointer-events:none;
z-index:6;
border-radius:1px;
position:absolute;
left:2px;
right:2px;
}
.wgInsertBefore:before {
top:-1px;
}
.wgInsertAfter:after {
bottom:-1px;
}
.wgChevron {
width:14px;
height:14px;
color:var(--dsw-fg-3,#7f7f7fcc);
flex:none;
justify-content:center;
align-items:center;
transition:transform .12s;
display:inline-flex;
}
.wgChevronOpen {
transform:rotate(90deg);
}
.wgCategoryIcon {
color:var(--dsw-fg-2,inherit);
flex:none;
justify-content:center;
align-items:center;
display:inline-flex;
}
.wgCategoryLabel {
text-overflow:ellipsis;
white-space:nowrap;
min-width:0;
color:var(--dsw-fg-1,inherit);
flex:1;
font-size:12px;
font-weight:600;
overflow:hidden;
}
.wgCategoryCount,
.wgProjectCount {
color:var(--dsw-fg-3,#7f7f7fcc);
flex:none;
font-size:11px;
}
.wgCategoryGlyph {
font-size:12px;
line-height:1;
}
.wgCategoryPin {
color:var(--dsw-fg-3,#7f7f7fcc);
flex:none;
display:inline-flex;
}
.wgProjectRow {
cursor:pointer;
user-select:none;
border-radius:6px;
align-items:center;
gap:4px;
height:28px;
padding:0 4px 0 20px;
display:flex;
position:relative;
}
.wgProjectFlat {
padding-left:4px;
}
.wgTopLevelArea {
margin-top:2px;
padding-bottom:10px;
}
.wgTopLevelEmpty {
border-radius:4px;
height:14px;
position:relative;
}
.wgTopLevelEmptyLine {
background:var(--dsw-accent,#4a90d9);
height:2px;
box-shadow:0 0 0 1px color-mix(in srgb, var(--dsw-accent,#4a90d9) 25%, transparent);
pointer-events:none;
border-radius:1px;
position:absolute;
top:50%;
left:2px;
right:2px;
}
.wgTopLevelEmptyActive {
background:var(--dsw-bg-selected,#4a90d92e);
}
.wgProjectRow:hover {
background:var(--dsw-bg-hover,#7f7f7f1f);
}
.wgProjectActive .wgProjectLabel {
font-weight:700;
}
.wgProjectLabel {
text-overflow:ellipsis;
white-space:nowrap;
min-width:0;
color:var(--dsw-alias-label-primary,var(--dsw-fg-1,inherit));
/* Same face and size as the group and session rows: the three levels read as
one list whose depth comes from the 16px indent and the weight ramp
(600 group / 500 project / 400 session), not from a size jump. The mono
face this used to use made project rows look larger and differently spaced
than the rows around them. */
font-size:12px;
font-weight:500;
flex:1;
overflow:hidden;
}
.wgRowActions {
opacity:0;
flex:none;
align-items:center;
gap:2px;
display:inline-flex;
}
/* One trailing slot per row: the member count and the hover buttons are stacked
in the same grid cell, pinned to the row's right edge. The count therefore
sits exactly where the buttons appear (both right-aligned), the cell is always
as wide as the widest of the two, and the swap cannot move either box. */
.wgRowTrail {
display:grid;
flex:none;
margin-left:auto;
align-items:center;
justify-items:end;
}
.wgRowTrail > * {
grid-area:1 / 1;
}
.wgProjectRow:hover .wgRowActions,.wgProjectRow:focus-within .wgRowActions {
opacity:1;
}
/* Folder rows (multi-root workspaces): one row per folder under a project. The
folder label lands on the session indent (74) and the folder's own sessions
step one further (90), so the ladder reads 42 → 58 → 74 → 90 on the same
16px step the group/project/session rows already use. */
.wgFolderRow {
cursor:pointer;
user-select:none;
border-radius:6px;
align-items:center;
gap:4px;
height:28px;
padding:0 4px 0 38px;
display:flex;
position:relative;
}
.wgFolderRow:hover {
background:var(--dsw-bg-hover,#7f7f7f1f);
}
.wgFolderRow:hover .wgRowActions,.wgFolderRow:focus-within .wgRowActions {
opacity:1;
}
.wgFolderLabel {
text-overflow:ellipsis;
white-space:nowrap;
min-width:0;
color:var(--dsw-alias-label-primary,var(--dsw-fg-1,inherit));
font-size:12px;
font-weight:500;
flex:1;
overflow:hidden;
}
/* The base folder is the workspace's own directory: slightly stronger weight so
the implicit folder #0 stays distinguishable from the extras. */
.wgFolderBase .wgFolderLabel {
font-weight:600;
}
.wgFolderRoot {
color:var(--dsw-accent,#4a90d9);
flex:none;
font-size:11px;
line-height:1;
}
.wgFolderCount {
color:var(--dsw-fg-3,#7f7f7fcc);
flex:none;
font-size:11px;
}
/* Trailing member count / session time and trailing actions are mutually
exclusive: at rest a row states its count (groups, workspaces, folders) or the
session's relative time, and as soon as it is hovered or reached by keyboard
focus the "+" / "⋯" buttons take that trailing slot. Both live in the same
.wgRowTrail cell and keep their boxes (opacity + visibility), so the count and
the time are right-aligned on the row's right edge exactly where the buttons
appear, and the swap never changes the row height nor reflows the label. */
.wgCategoryCount,.wgFolderCount,.wgProjectCount,.wgSessionTime {
transition:opacity .12s ease;
}
.wgCategoryRow:hover .wgCategoryCount,
.wgCategoryRow:focus-within .wgCategoryCount,
.wgFolderRow:hover .wgFolderCount,
.wgFolderRow:focus-within .wgFolderCount,
.wgProjectRow:hover .wgProjectCount,
.wgProjectRow:focus-within .wgProjectCount,
.wgSessionRow:hover .wgSessionTime,
.wgSessionRow:focus-within .wgSessionTime {
opacity:0;
visibility:hidden;
}
/* Sessions hanging off a folder row: one indent step deeper than a plain
session title (74 → 90). */
.wgSessionNested {
padding-left:70px;
}
.wgTreeWrap {
position:relative;
}
/* The flower overlay holds only the bloom now; the stem and per-row dots were
removed, so no stroke rules live here any more. */
.wgBranch {
z-index:2;
pointer-events:none;
position:absolute;
top:0;
left:0;
overflow:visible;
transition:opacity .12s ease;
}
/* Disclosure animation moves rows before FlowerBranch re-measures: hide the
bloom while any RowGroup animates so it never lags behind its row. */
.wgTreeWrap:has([data-wg-animating]) .wgBranch {
opacity:0;
}
.wgTreeWrap>.wgList {
z-index:1;
position:relative;
}
.wgFlowerArt {
transform-box:fill-box;
transform-origin:50%;
animation:4s linear infinite paused wg-flower-spin;
}
.wgFlowerSpinning .wgFlowerArt {
animation-play-state:running;
}
@keyframes wg-flower-spin {
0%{transform:rotate(0)}to{transform:rotate(360deg)};
}
@media (prefers-reduced-motion:reduce) {
.wgFlowerArt{animation:none}.wgRowsOpening,.wgRowsClosing{animation:none}.wgBranch{transition:none};
}
/* Animated disclosure body (RowGroup): 0fr ↔ 1fr interpolates the row box
without measuring heights. The inner element must shrink during the +row
collapse, and overflow is only clipped while a class is present so idle
hover halos and focus rings are never cut off. */
.wgRows {
display:grid;
grid-template-columns:minmax(0,1fr);
grid-template-rows:1fr;
}
.wgRowsInner {
min-height:0;
}
.wgRowsOpening {
animation:wg-rows-in .18s cubic-bezier(.2,.8,.2,1);
}
.wgRowsClosing {
pointer-events:none;
animation:wg-rows-out .16s cubic-bezier(.4,0,1,1) forwards;
}
.wgRowsOpening .wgRowsInner,.wgRowsClosing .wgRowsInner {
overflow:hidden;
}
@keyframes wg-rows-in {
0%{grid-template-rows:0fr;opacity:.35}
to{grid-template-rows:1fr;opacity:1}
}
@keyframes wg-rows-out {
0%{grid-template-rows:1fr;opacity:1}
to{grid-template-rows:0fr;opacity:0}
}
.wgTreeChildren {
position:relative;
}
.wgSessionRow {
cursor:pointer;
user-select:none;
border-radius:6px;
align-items:center;
gap:6px;
height:28px;
/* Nesting step: group label 42 → project label 58 → session title 74, i.e. a
uniform 16px per level. The session used to start at 40 (+20 for the status
slot = 60), which sat only 2px right of its project label and read as the
same level. */
padding:0 4px 0 54px;
display:flex;
}
.wgSessionRow:hover {
background:var(--dsw-bg-hover,#7f7f7f1f);
}
.wgSessionRow:hover .wgRowActions,.wgSessionRow:focus-within .wgRowActions {
opacity:1;
}
.wgSelected {
background:var(--dsw-bg-selected,#4a90d92e);
}
.wgStatusSlot {
flex:none;
justify-content:center;
align-items:center;
width:14px;
height:14px;
display:inline-flex;
}
.wgSessionTitle {
text-overflow:ellipsis;
white-space:nowrap;
min-width:0;
color:var(--dsw-alias-label-secondary,var(--dsw-fg-2,inherit));
flex:1;
font-size:12px;
overflow:hidden;
}
.wgSelected .wgSessionTitle {
color:var(--dsw-alias-label-primary,var(--dsw-fg-1,inherit));
font-weight:500;
}
.wgSessionTime {
color:var(--dsw-fg-3,#7f7f7fcc);
flex:none;
font-size:11px;
}
.wgVisuallyHidden {
clip:rect(0 0 0 0);
white-space:nowrap;
border:0;
width:1px;
height:1px;
margin:-1px;
padding:0;
position:absolute;
overflow:hidden;
}
.wgMatched {
background:var(--dsw-bg-selected,#4a90d92e);
}
.wgSessionSnippet {
text-overflow:ellipsis;
white-space:nowrap;
min-width:0;
color:var(--dsw-fg-3,#7f7f7fcc);
flex:1;
font-size:11px;
overflow:hidden;
}
.wgSearchStatus {
color:var(--dsw-fg-3,#7f7f7fcc);
text-align:center;
padding:8px;
font-size:11px;
}
.wgManualError {
color:var(--dsw-fg-1,inherit);
text-align:left;
word-break:break-word;
}
.wgRail {
flex-direction:column;
align-items:center;
gap:12px;
padding:8px 0 0;
display:flex;
overflow:hidden;
}
.wgRail .wgSectionHeader {
flex-direction:column;
align-self:center;
align-items:center;
gap:12px;
width:36px;
height:auto;
padding:0;
}
.wgRail .wgIconButton {
border-radius:50%;
width:36px;
height:36px;
}
.wgRail .wgTreeBody {
display:none;
}
.wgAddError {
color:var(--dsw-fg-1,inherit);
white-space:pre-wrap;
word-break:break-word;
max-height:200px;
font-size:12px;
overflow-y:auto;
}
.wgRenameInput {
border:1px solid var(--dsw-border,#7f7f7f4d);
background:var(--dsw-bg-1,transparent);
width:100%;
color:var(--dsw-fg-1,inherit);
border-radius:6px;
outline:none;
padding:6px 8px;
font-size:13px;
}
.wgRenameInput:focus {
border-color:var(--dsw-accent,#4a90d9);
}
/* Folder list dialog: one row per folder (base first), radio picks the root. */
.wgFolderList {
display:flex;
flex-direction:column;
gap:4px;
}
.wgFolderListRow {
border-radius:6px;
align-items:center;
gap:6px;
padding:4px 4px 4px 2px;
display:flex;
}
.wgFolderListRow:hover {
background:var(--dsw-bg-hover,#7f7f7f1f);
}
.wgFolderRadio {
flex:none;
accent-color:var(--dsw-accent,#4a90d9);
margin:0;
}
.wgFolderListLabel {
text-overflow:ellipsis;
white-space:nowrap;
min-width:0;
color:var(--dsw-fg-1,inherit);
font-size:12px;
flex:1;
overflow:hidden;
}
.wgFolderListTag {
color:var(--dsw-fg-3,#7f7f7fcc);
flex:none;
font-size:11px;
}
.wgFolderListActions {
flex:none;
align-items:center;
gap:2px;
display:inline-flex;
}
.wgFolderListFooter {
margin-top:8px;
}
/* Remote (mirror-backed) workspaces add a folder by typed subpath, so the
footer grows a hint + input row instead of the picker button. */
.wgFolderHint {
color:var(--dsw-alias-label-secondary,inherit);
margin:0 0 6px;
font-size:12px;
line-height:1.5;
opacity:.85;
}
.wgFolderSubpath {
display:flex;
align-items:center;
gap:6px;
}
.wgFolderSubpathInput {
flex:1 1 auto;
min-width:0;
padding:4px 8px;
border:1px solid var(--dsw-alias-border-l2,#7f7f7f40);
border-radius:6px;
background:var(--dsw-alias-bg-base,transparent);
color:inherit;
font:inherit;
font-size:13px;
}
.wgFolderSubpathInput:focus {
outline:none;
border-color:var(--dsw-alias-label-primary,currentColor);
}
/* Appearance dialog: colour swatches, categorised icon picker, pin toggle. */
.wgAppearanceBody {
display:flex;
flex-direction:column;
gap:16px;
}
/* Cap against the modal's padded viewport box (the host Modal documents
`max-height:100%` for consumers) and scroll the card body instead of letting
the card grow: the title row stays pinned while it scrolls, and the footer —
the only "done" button — lives outside the scroller, so a taller icon picker
can never push it out of the dialog. */
.wgAppearanceDialog {
max-height:100%;
}
.wgAppearanceContent {
overflow-x:hidden;
overflow-y:auto;
min-height:0;
}
.wgAppearanceContent > :first-child {
position:sticky;
top:0;
z-index:1;
background:var(--dsw-alias-bg-layer-2,transparent);
}
.wgAppearanceSection {
display:flex;
flex-direction:column;
gap:6px;
}
.wgAppearanceLabel {
color:var(--dsw-fg-3,#7f7f7fcc);
font-size:11px;
font-weight:600;
}
.wgSwatchRow {
gap:6px;
display:flex;
flex-wrap:wrap;
}
.wgSwatch {
cursor:pointer;
border:1px solid var(--dsw-alias-border-l2,#7f7f7f47);
width:20px;
height:20px;
border-radius:5px;
padding:0;
}
.wgSwatch[data-wg-color] {
background:var(--wg-group-tint);
}
.wgSwatch:disabled {
cursor:default;
opacity:.5;
}
.wgSwatchActive {
outline:2px solid var(--dsw-accent,#4a90d9);
outline-offset:1px;
}
.wgSwatchDefault {
background:var(--dsw-bg-hover,#7f7f7f1f);
}
/* One height-capped scroller for every icon section (common presets, the four
research families, emoji), so the picker grows sideways, not downwards. The
4px padding keeps edge cells' focus rings inside the clip. */
.wgIconSections {
display:flex;
flex-direction:column;
gap:10px;
max-height:216px;
overflow-y:auto;
padding:4px;
scrollbar-gutter:stable;
}
.wgIconSection {
display:flex;
flex-direction:column;
gap:4px;
}
.wgIconSectionLabel {
color:var(--dsw-fg-3,#7f7f7fcc);
font-size:11px;
font-weight:600;
line-height:14px;
}
.wgIconGrid {
gap:4px;
grid-template-columns:repeat(auto-fill,minmax(28px,1fr));
padding:1px;
display:grid;
}
.wgEmojiGrid .wgIconCell {
font-size:18px;
}
/* Restore-default + custom glyph: a row under the picker, kept clear of the
picker's scroller (its focus ring never overlaps a cell). */
.wgIconCustom {
display:flex;
align-items:center;
gap:8px;
margin-top:2px;
}
.wgIconCustom .wgRenameInput {
flex:1;
min-width:0;
}
.wgIconCell.wgIconDefault {
width:auto;
padding:0 8px;
}
.wgIconCell {
cursor:pointer;
color:var(--dsw-fg-2,inherit);
border:0;
border-radius:5px;
justify-content:center;
align-items:center;
width:28px;
height:28px;
padding:0;
display:inline-flex;
background:transparent;
}
.wgIconCell:hover:not(:disabled) {
background:var(--dsw-bg-hover,#7f7f7f1f);
}
.wgIconCell[aria-pressed=true] {
background:var(--dsw-bg-selected,#4a90d92e);
box-shadow:inset 0 0 0 1px var(--dsw-accent,#4a90d9);
}
.wgIconCell:focus-visible {
outline:2px solid var(--dsw-accent,#4a90d9);
outline-offset:1px;
}
.wgIconCell:disabled {
cursor:default;
opacity:.5;
}
.wgQuickOverlay {
z-index:1100;
background:var(--dsw-alias-bg-mask-1,#00000052);
backdrop-filter:var(--dsw-mask-blur,blur(2px));
justify-content:center;
align-items:flex-start;
padding:10vh 24px 24px;
display:flex;
position:fixed;
inset:0;
}
.wgQuickCard {
border:1px solid var(--dsw-border,#7f7f7f33);
background:var(--dsw-alias-bg-layer-2,var(--dsw-bg-1,#fff));
width:min(640px,100%);
max-height:min(560px,90vh - 48px);
box-shadow:var(--dsw-elevation-prominent,0 16px 48px #00000040);
box-sizing:border-box;
border-radius:12px;
flex-direction:column;
gap:10px;
padding:14px;
display:flex;
overflow:hidden;
}
.wgQuickHeader {
flex:none;
justify-content:space-between;
align-items:center;
gap:12px;
display:flex;
}
.wgQuickTitle {
color:var(--dsw-alias-label-primary,var(--dsw-fg-1,inherit));
font-size:13px;
font-weight:600;
}
.wgQuickTabs {
gap:2px;
display:flex;
}
.wgQuickTab {
color:var(--dsw-alias-label-secondary,var(--dsw-fg-2,inherit));
cursor:pointer;
background:0 0;
border:none;
border-radius:6px;
align-items:center;
gap:6px;
padding:4px 12px;
font-family:inherit;
font-size:12px;
display:inline-flex;
}
.wgQuickTab:hover {
background:var(--dsw-alias-interactive-bg-hover,var(--dsw-bg-hover,#7f7f7f1f));
}
.wgQuickTabActive {
background:var(--dsw-alias-interactive-bg-hover,var(--dsw-bg-selected,#4a90d92e));
color:var(--dsw-alias-label-primary,var(--dsw-fg-1,inherit));
font-weight:600;
}
.wgQuickTabCount {
background:var(--dsw-accent,#4a90d9);
color:#fff;
text-align:center;
border-radius:8px;
min-width:16px;
height:16px;
padding:0 4px;
font-size:10px;
font-weight:600;
line-height:16px;
}
.wgQuickSearchWrap {
flex:none;
}
.wgQuickSearch {
border:1px solid var(--dsw-border,#7f7f7f4d);
background:var(--dsw-bg-1,transparent);
width:100%;
height:34px;
color:var(--dsw-alias-label-primary,var(--dsw-fg-1,inherit));
box-sizing:border-box;
border-radius:8px;
outline:none;
padding:0 10px;
font-family:inherit;
font-size:13px;
}
.wgQuickSearch:focus {
border-color:var(--dsw-accent,#4a90d9);
}
.wgQuickList {
flex-direction:column;
flex:auto;
gap:2px;
min-height:64px;
padding-right:2px;
display:flex;
overflow-y:auto;
}
.wgQuickRow {
cursor:pointer;
text-align:left;
box-sizing:border-box;
background:0 0;
border:none;
border-radius:8px;
flex-direction:column;
flex:none;
gap:2px;
width:100%;
padding:7px 10px;
font-family:inherit;
display:flex;
}
.wgQuickRow:hover,.wgQuickRowActive {
background:var(--dsw-alias-interactive-bg-hover,var(--dsw-bg-hover,#7f7f7f1f));
}
.wgQuickRowSelected,.wgQuickRowCurrent {
background:var(--dsw-bg-selected,#4a90d92e);
}
.wgQuickRowMain {
align-items:center;
gap:8px;
width:100%;
min-width:0;
display:flex;
}
.wgQuickRowTitle {
text-overflow:ellipsis;
white-space:nowrap;
min-width:0;
color:var(--dsw-alias-label-primary,var(--dsw-fg-1,inherit));
flex:1;
font-size:13px;
font-weight:500;
overflow:hidden;
}
.wgQuickRunBadge {
color:var(--dsw-accent,#4a90d9);
flex:none;
font-size:11px;
}
.wgQuickTime {
color:var(--dsw-alias-label-secondary,var(--dsw-fg-3,#7f7f7fcc));
flex:none;
font-size:11px;
}
.wgQuickRowSub {
min-width:0;
display:flex;
}
.wgQuickRowPath {
text-overflow:ellipsis;
white-space:nowrap;
min-width:0;
color:var(--dsw-alias-label-secondary,var(--dsw-fg-3,#7f7f7fcc));
flex:1;
font-size:11px;
overflow:hidden;
}
.wgQuickEmpty {
text-align:center;
color:var(--dsw-alias-label-secondary,var(--dsw-fg-3,#7f7f7fcc));
padding:24px 8px;
font-size:12px;
}
.wgQuickFooter {
flex:none;
align-items:center;
gap:8px;
padding-top:2px;
display:flex;
}
.wgQuickSelected {
text-overflow:ellipsis;
white-space:nowrap;
min-width:0;
color:var(--dsw-alias-label-secondary,var(--dsw-fg-3,#7f7f7fcc));
flex:1;
font-size:12px;
overflow:hidden;
}
.wgQuickHint {
text-align:center;
color:var(--dsw-alias-label-secondary,var(--dsw-fg-3,#7f7f7fcc));
flex:none;
font-size:11px;
}
.wgTabs {
box-sizing:border-box;
border-bottom:1px solid var(--dsw-alias-border-l2,#7f7f7f33);
background:0 0;
flex:none;
align-items:stretch;
gap:4px;
min-width:0;
height:56px;
padding:8px 10px;
display:flex;
}
.wgTabsScroll {
scrollbar-width:none;
-ms-overflow-style:none;
-webkit-overflow-scrolling:touch;
overscroll-behavior-x:contain;
box-sizing:border-box;
flex:auto;
align-items:stretch;
gap:6px;
min-width:0;
padding:1px 0;
display:flex;
overflow:auto hidden;
}
.wgTabsScroll::-webkit-scrollbar {
width:0;
height:0;
display:none;
}
.wgTab {
min-width:0;
max-width:240px;
box-shadow:inset 0 0 0 1px var(--dsw-alias-border-l2,#7f7f7f2e);
color:var(--dsw-alias-label-secondary,var(--dsw-fg-2,inherit));
border-radius:8px;
flex:none;
align-items:center;
padding:0 6px 0 10px;
transition:background .12s,box-shadow .12s;
display:inline-flex;
}
.wgTabText {
flex-direction:column;
flex:auto;
justify-content:center;
align-items:flex-start;
gap:3px;
min-width:0;
height:100%;
display:flex;
}
.wgTabProject {
text-overflow:ellipsis;
white-space:nowrap;
min-width:0;
max-width:100%;
font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);
letter-spacing:.02em;
color:var(--dsw-alias-label-secondary,var(--dsw-fg-3,inherit));
opacity:.85;
flex:none;
font-size:10px;
line-height:13px;
overflow:hidden;
}
.wgTab:hover {
background:var(--dsw-alias-interactive-bg-hover,var(--dsw-bg-hover,#7f7f7f1f));
}
.wgTabActive {
background:var(--dsw-alias-interactive-bg-hover,var(--dsw-bg-hover,#7f7f7f1f));
box-shadow:inset 0 0 0 1px var(--dsw-alias-label-secondary,#7f7f7f73);
color:var(--dsw-alias-label-primary,var(--dsw-fg-1,inherit));
}
.wgTabActive .wgTabProject {
opacity:1;
}
.wgTabMain {
box-sizing:border-box;
min-width:0;
height:100%;
color:inherit;
cursor:pointer;
background:0 0;
border:none;
flex:auto;
align-items:center;
gap:8px;
padding:6px 0;
font-family:inherit;
font-size:12px;
display:inline-flex;
}
.wgTabStatus {
flex:none;
justify-content:center;
align-items:center;
width:12px;
height:12px;
display:inline-flex;
}
.wgTabStatus[data-tab-state=idle] {
opacity:.45;
}
.wgTabLabel {
text-overflow:ellipsis;
white-space:nowrap;
min-width:0;
max-width:100%;
color:var(--dsw-alias-label-primary,var(--dsw-fg-1,inherit));
flex:none;
font-size:12px;
line-height:16px;
overflow:hidden;
}
.wgTabText>.wgTabLabel:only-child {
align-self:center;
}
.wgTabClose {
width:20px;
height:20px;
color:inherit;
cursor:pointer;
opacity:0;
background:0 0;
border:none;
border-radius:5px;
flex:none;
justify-content:center;
align-items:center;
margin-left:2px;
padding:0;
transition:opacity .12s,background .12s;
display:inline-flex;
}
.wgTab:hover .wgTabClose,.wgTab:focus-within .wgTabClose,.wgTabActive .wgTabClose {
opacity:1;
}
.wgTabClose:hover {
background:var(--dsw-alias-interactive-bg-hover-solid,#7f7f7f33);
}
/* ---- tab strip: pin / drag / inline rename / context menu ------------------ */
.wgTab {
position:relative;
}
.wgTabPinned {
box-shadow:inset 0 0 0 1px var(--dsw-alias-label-secondary,#7f7f7f73);
}
.wgTabPin {
flex:none;
justify-content:center;
align-items:center;
width:12px;
height:12px;
margin-left:4px;
opacity:.55;
color:inherit;
display:inline-flex;
}
.wgTabDragging {
opacity:.42;
}
.wgTabDropBefore:before,.wgTabDropAfter:before {
content:"";
position:absolute;
top:2px;
bottom:2px;
background:var(--dsw-alias-label-primary,var(--dsw-fg-1,#4a90d9));
border-radius:2px;
width:2px;
}
.wgTabDropBefore:before {
left:-4px;
}
.wgTabDropAfter:before {
right:-4px;
}
.wgTabRename {
box-sizing:border-box;
min-width:88px;
height:100%;
color:inherit;
background:var(--dsw-alias-bg-elevated,var(--dsw-bg-1,transparent));
border:1px solid var(--dsw-alias-label-secondary,#7f7f7f73);
border-radius:6px;
outline:none;
flex:auto;
margin:2px 0;
padding:0 6px;
font-family:inherit;
font-size:12px;
}
.wgTabMenu {
z-index:2147483000;
box-sizing:border-box;
min-width:196px;
background:var(--dsw-alias-bg-popup,var(--dsw-bg-2,#1e1e1e));
border:1px solid var(--dsw-alias-border-l2,#7f7f7f33);
border-radius:8px;
flex-direction:column;
padding:4px;
display:flex;
position:fixed;
box-shadow:0 8px 24px #00000033,0 1px 2px #0000001f;
}
.wgTabMenuItem {
width:100%;
color:var(--dsw-alias-label-primary,var(--dsw-fg-1,inherit));
text-align:left;
cursor:pointer;
background:0 0;
border:none;
border-radius:5px;
padding:6px 10px;
font-family:inherit;
font-size:12px;
line-height:16px;
}
.wgTabMenuItem:hover:not(:disabled) {
background:var(--dsw-alias-interactive-bg-hover,var(--dsw-bg-hover,#7f7f7f1f));
}
.wgTabMenuItem:disabled {
cursor:default;
opacity:.4;
}
.wgTabMenuDanger {
color:var(--dsw-alias-label-error,var(--dsw-fg-error,#d9534f));
}
.wgTabMenuSeparator {
background:var(--dsw-alias-border-l2,#7f7f7f33);
height:1px;
margin:4px 6px;
}