The side chat inherited none of the main pane's reading behaviour and could not say where it forked off. This change brings it in line and keeps the upstream v0.30.1 release intact. Work details follow the main conversation's setting (transcriptView + collapseTiming): settled turns fold behind the host's own "Completed in Ns" line, running turns stay open, verbose never folds. The transcript now names its origin: the events route reports the fork point, and the block above the first row renders the inherited question as an ordinary user bubble and the inherited answer as ordinary assistant prose, bracketed by two divider lines and carried verbatim. Reading the thread got cheaper and calmer: only the tail is mounted with a step-wise reveal, scroll-follow answers an explicit intent, and the composer guards IME composition, key repeat and the submit-gesture choice while send and stop stay independent controls. Everything visual rides the host's own surface: content-size and code font axes, the host's markdown surface for reasoning, host cards for search/web/ terminal/diff results, compaction and retry rows, and host-defined design tokens (six borders and eleven colours had referenced tokens the host never defines, so they never painted). Thread creation became reliable: a stored parent is resumed through the session controller, the create budget is a deployment setting instead of a hard-coded 15 seconds, and the child attaches at the parent's workspace cwd while its tools keep running in the reader's current directory. Upstream v0.30.1 brings side-chat images, clickable quote chips, editor draft backup, the settings icon slot and the 0.2.2 model seam; its per-thread draft owner and image projection replace the hand-written paths this branch used to carry, so only one implementation of each survives.
658 lines
26 KiB
CSS
658 lines
26 KiB
CSS
/* The unified changes tab: the 36px lens header + Git lens + session lens +
|
||
the shared preview pane. Token-only by contract (`tests/theme.spec.ts` scans
|
||
every module sheet) and cut to the plugin's native scale — 12px body, 11px
|
||
meta, 28px rows/controls, 2/3/4px radii (see
|
||
docs/plans/2026-09-27-files-changes-uiux.md §1).
|
||
|
||
The generic chrome — icon buttons, chips, section bands, badges, empty /
|
||
loading / error lines and the confirm dialog — now lives in
|
||
`src/client/ui/kit.module.css`; this sheet keeps only layout and the
|
||
surfaces unique to this tab. */
|
||
|
||
.root { display: flex; flex-direction: column; min-height: 0; height: 100%; background: var(--dsw-alias-bg-base); color: var(--dsw-alias-label-primary); font: var(--dsw-font-xxs-12); }
|
||
|
||
/* ── Lens header ───────────────────────────────────────────────────────── */
|
||
|
||
.head { flex: none; display: flex; align-items: stretch; gap: 8px; height: 36px; padding: 0 8px 0 12px; border-bottom: 1px solid var(--dsw-alias-border-l1); }
|
||
.headAction { margin-left: auto; align-self: center; }
|
||
.lensBody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
|
||
/* Retained but not on screen: `display: flex` above would otherwise win over
|
||
the `hidden` attribute and two lenses would share the column. */
|
||
.lensBody[hidden] { display: none; }
|
||
|
||
/* ── Git lens (the former git panel) ───────────────────────────────────── */
|
||
|
||
/* Changes and Graph share one scroll body; branch/sync stays outside it. */
|
||
.git {
|
||
flex: 1;
|
||
min-height: 0;
|
||
min-width: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
padding-top: 6px;
|
||
}
|
||
|
||
/* The inner scroll body: the change groups + the history. It owns both scroll
|
||
axes' policy — vertical scrolling for the list, clipping for anything wider
|
||
than the panel (tab pages never scroll horizontally: content wraps or
|
||
truncates to the panel width instead of panning sideways). */
|
||
.gitScroll {
|
||
flex: 1;
|
||
min-height: 0;
|
||
min-width: 0;
|
||
overflow-y: auto;
|
||
overflow-x: hidden;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.changesSection { flex: none; }
|
||
/* Bound the section's minimum, not its maximum: 28px header + 220px viewport.
|
||
An automatic minimum would let the entire history stretch the outer scroller. */
|
||
.graphSection { flex: 1; min-height: 248px; display: flex; flex-direction: column; }
|
||
.graphArea { flex: 1; display: flex; flex-direction: column; min-height: 0; }
|
||
|
||
.scmHeader { display: flex; align-items: center; min-height: 28px; padding: 0 6px; }
|
||
.scmDisclosure { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; min-height: 28px; padding: 0; border: none; background: transparent; color: var(--dsw-alias-label-primary); font: var(--dsw-font-xxs-strong-12); text-align: left; cursor: pointer; }
|
||
.scmActions { display: flex; align-items: center; gap: 2px; opacity: 0; }
|
||
.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.
|
||
NO z-index: in a floating window the host's resize grip is the last child
|
||
at `z-index: auto`, so a stacking footer paints over the bottom-right
|
||
corner and makes the grip un-hittable. Sticky (positioned) already paints
|
||
above the scrolled rows. */
|
||
.gitFooter { flex: none; min-width: 0; position: sticky; bottom: 0; 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; }
|
||
|
||
/* A failed remote op reports above the branch row and git's stderr can be long:
|
||
it keeps its own height (never truncated) but gets a dismiss control instead
|
||
of living in the docked footer until the next action. */
|
||
.actionError { display: flex; align-items: flex-start; gap: 6px; white-space: normal; }
|
||
.actionErrorText { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
|
||
.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; }
|
||
.branchButton { flex: 1; text-align: left; }
|
||
.syncButton { max-width: 55%; }
|
||
.branchButton svg, .syncButton svg { flex: none; }
|
||
.branchButton span, .syncButton span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.branchButton:hover:not(:disabled), .syncButton:hover:not(:disabled) { background: var(--dsw-alias-interactive-bg-hover); }
|
||
.branchButton:disabled, .syncButton:disabled { opacity: 0.45; cursor: default; }
|
||
|
||
/* ── Change groups (one directory tree each) ───────────────────────────── */
|
||
|
||
/* One group is its own block so its sticky header is released exactly when the
|
||
group scrolls past (two headers in one block would stack on top of each
|
||
other). */
|
||
.group { display: flex; flex-direction: column; padding-bottom: 2px; }
|
||
|
||
/* The header band stays readable while its group scrolls under it. The extra
|
||
class keeps the opaque fill above the kit's transparent band no matter which
|
||
sheet lands first in the bundle. */
|
||
.group .groupHeader {
|
||
gap: 4px;
|
||
position: sticky;
|
||
top: 0;
|
||
z-index: 2;
|
||
background: var(--dsw-alias-bg-base);
|
||
}
|
||
|
||
/* 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: var(--dsw-radius-sm);
|
||
background: var(--dsw-alias-interactive-bg-hover);
|
||
color: var(--dsw-alias-label-secondary);
|
||
font: var(--dsw-font-xxxs-strong-11);
|
||
line-height: 20px;
|
||
text-align: center;
|
||
font-size: 10px;
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
/* A band action (stage all / unstage all) stays out of the way until the band
|
||
is hovered or holds focus — a keyboard tab reveals it too. Touch devices
|
||
have no hover, so there it is always visible. */
|
||
.group .headerAction { opacity: 0; transition: opacity 120ms var(--ds-ease-in-out); }
|
||
.group .groupHeader:hover .headerAction,
|
||
.group .groupHeader:focus-within .headerAction { opacity: 1; }
|
||
@media (hover: none) {
|
||
.group .headerAction { opacity: 1; }
|
||
}
|
||
|
||
/* Indent row contents only; hover bands span the full panel. */
|
||
.tree { display: flex; flex-direction: column; }
|
||
|
||
/* A directory row's disclosure button. It shares the `.row` band with a file
|
||
row (the band owns the hover/selected fill and the trailing action), so this
|
||
button is only the row's main hit area. */
|
||
.dirRow {
|
||
flex: 1;
|
||
min-width: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
border: none;
|
||
background: transparent;
|
||
padding: 0;
|
||
color: var(--dsw-alias-label-secondary);
|
||
font: inherit;
|
||
cursor: pointer;
|
||
text-align: left;
|
||
}
|
||
.dirRow:focus-visible { outline: 2px solid var(--dsw-alias-interactive-bg-hover-accent); outline-offset: -1px; }
|
||
|
||
.chevron { flex: none; display: inline-flex; color: var(--dsw-alias-label-tertiary); transition: transform 140ms var(--ds-ease-in-out); }
|
||
.chevron[data-open='true'] { transform: rotate(90deg); }
|
||
|
||
.dirName { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--dsw-font-xxs-12); }
|
||
|
||
/* One changed file: file artwork + porcelain badge + name + the trailing
|
||
action (revealed on hover/focus). */
|
||
.row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
position: relative;
|
||
min-height: 28px;
|
||
padding: 0 6px;
|
||
animation: dsh-row-in 150ms var(--ds-ease-in-out);
|
||
}
|
||
.row:hover { background: var(--dsw-alias-interactive-bg-hover); }
|
||
/* Selected and hovered are different pictures: the selected row keeps the
|
||
active fill AND the design's 2px accent marker — a pseudo element inset 4px
|
||
(the tasks page's own recipe), so the row stays shadowless and no metric
|
||
shifts between rows. */
|
||
.row[data-selected='true'],
|
||
.opRow[data-selected='true'] {
|
||
background: var(--dsw-alias-interactive-bg-active);
|
||
}
|
||
|
||
.row[data-selected='true']::before,
|
||
.opRow[data-selected='true']::before {
|
||
content: '';
|
||
position: absolute;
|
||
left: 0;
|
||
top: 4px;
|
||
bottom: 4px;
|
||
width: 2px;
|
||
border-radius: 1px;
|
||
background: var(--dsw-alias-state-business-primary);
|
||
}
|
||
|
||
/* The tree's indent guides: the same 1px `border-l1` edge the old nested
|
||
`.treeChildren` wrapper drew (`margin-left: 11px` boundaries become the
|
||
absolutely placed columns in `IndentGuides`), one per level above the row and
|
||
spanning the whole band, so the flex metrics never move. */
|
||
.guide {
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 0;
|
||
width: 0;
|
||
border-left: 1px solid var(--dsw-alias-border-l1);
|
||
}
|
||
|
||
.rowMain {
|
||
flex: 1;
|
||
min-width: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
border: none;
|
||
background: transparent;
|
||
padding: 0;
|
||
cursor: pointer;
|
||
text-align: left;
|
||
}
|
||
.rowMain:focus-visible { outline: 2px solid var(--dsw-alias-interactive-bg-hover-accent); outline-offset: -1px; }
|
||
|
||
/* The row's icons are content at the plugin's own scale, not chrome. */
|
||
.rowIcon { flex: none; display: inline-flex; align-items: center; }
|
||
|
||
.rowName { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--dsw-font-xxs-12); color: var(--dsw-alias-label-primary); }
|
||
.rowPath { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--dsw-font-xxxs-11); color: var(--dsw-alias-label-tertiary); }
|
||
|
||
/* A row's / band's line counts (#131): `+N −M` in the diff pane's own ink (the
|
||
`.statAdd` / `.statDel` atoms of `diff.module.css`, reused rather than
|
||
re-coloured here). Tabular figures keep the column from shifting between
|
||
readings, and the code face matches every other number in the tab. Size and
|
||
line height come from the smallest host font token (11px/14px) — the family
|
||
is overridden back to the code stack right after the shorthand, which is the
|
||
order the shorthand requires. */
|
||
.lineCounts {
|
||
flex: none;
|
||
display: inline-flex;
|
||
gap: 5px;
|
||
font: var(--dsw-font-xxxs-11);
|
||
font-family: var(--ds-font-family-code, monospace);
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
/* The stand-ins for "no numbers exist": a binary change and an untracked (new)
|
||
file. Quiet tertiary ink — they are a state, not a measurement. */
|
||
.lineNote {
|
||
flex: none;
|
||
font: var(--dsw-font-xxxs-11);
|
||
color: var(--dsw-alias-label-tertiary);
|
||
white-space: nowrap;
|
||
}
|
||
|
||
/* Match both glyphs and keep their hover boxes smaller than the 28px row. */
|
||
.row .rowAction, .group .headerAction { width: 20px; height: 20px; }
|
||
|
||
/* The row action is invisible until its row is hovered or holds focus (a
|
||
keyboard tab lands on it and reveals it). The three-class form outranks the
|
||
kit's own disabled rule, which would otherwise pin every button to a dim but
|
||
visible 0.4 whenever a git action is in flight. */
|
||
.row:not(:hover):not(:focus-within) .rowAction { opacity: 0; }
|
||
@media (hover: none) {
|
||
.row:not(:hover):not(:focus-within) .rowAction { opacity: 1; }
|
||
}
|
||
|
||
/* ── Message draft (inside Changes) ─────────────────────────────────────── */
|
||
|
||
.messageBox { display: flex; padding: 4px 8px 8px; }
|
||
|
||
/* Desktop's official Input frame, with a growing textarea instead of input. */
|
||
.commitInputWrap {
|
||
position: relative;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
flex: 1;
|
||
min-width: 0;
|
||
min-height: 32px;
|
||
box-sizing: border-box;
|
||
padding: 0 4px 0 8px;
|
||
border: 0.5px solid var(--dsw-alias-border-l4);
|
||
border-radius: var(--dsw-radius-md);
|
||
background: var(--dsw-alias-bg-layer-1);
|
||
}
|
||
.commitInputWrap:focus-within { border-color: var(--dsw-alias-state-business-primary); }
|
||
|
||
.commitInput {
|
||
flex: 1;
|
||
min-width: 0;
|
||
height: 22px;
|
||
min-height: 22px;
|
||
max-height: 132px;
|
||
padding: 0;
|
||
margin: 4px 0;
|
||
border: none;
|
||
background: transparent;
|
||
color: var(--dsw-alias-label-primary);
|
||
font: var(--dsw-font-s-14);
|
||
line-height: 22px;
|
||
resize: none;
|
||
overflow-y: hidden;
|
||
outline: none;
|
||
}
|
||
|
||
.commitInput::placeholder {
|
||
color: var(--dsw-alias-label-dimmed);
|
||
}
|
||
|
||
.commitInput:disabled {
|
||
opacity: 0.5;
|
||
}
|
||
.commitInput[data-message-busy='true'] { color: transparent; caret-color: transparent; }
|
||
|
||
/* Busy text in the input's place: the running-status sweep used by the side
|
||
chat (gradient text scrolled by background-position). The real placeholder
|
||
is cleared while busy, so the two never overlap. */
|
||
.commitBusyText {
|
||
position: absolute;
|
||
inset: 0 38px 0 0;
|
||
display: flex;
|
||
align-items: center;
|
||
/* Match the frame's inset while keeping the generate button unobscured. */
|
||
padding: 0 8px;
|
||
pointer-events: none;
|
||
font: var(--dsw-font-s-14);
|
||
line-height: 22px;
|
||
background-image: linear-gradient(
|
||
90deg,
|
||
var(--dsw-alias-label-tertiary) 0%,
|
||
var(--dsw-alias-label-primary) 50%,
|
||
var(--dsw-alias-label-tertiary) 100%
|
||
);
|
||
background-size: 200% 100%;
|
||
-webkit-background-clip: text;
|
||
background-clip: text;
|
||
color: transparent;
|
||
animation: commitSweep 2.6s linear infinite;
|
||
}
|
||
|
||
@keyframes commitSweep {
|
||
from { background-position: 200% 0; }
|
||
to { background-position: -200% 0; }
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.commitBusyText { animation: none; }
|
||
}
|
||
|
||
/* Generate fills the draft only. Inline on the input's right edge. */
|
||
.suggestButton {
|
||
flex: none;
|
||
align-self: flex-start;
|
||
margin-top: 3px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 24px;
|
||
height: 24px;
|
||
padding: 0;
|
||
border: none;
|
||
border-radius: 8px;
|
||
background: transparent;
|
||
color: var(--dsw-alias-label-tertiary);
|
||
cursor: pointer;
|
||
}
|
||
|
||
.suggestButton:hover:not(:disabled) {
|
||
background: var(--dsw-alias-interactive-bg-hover);
|
||
color: var(--dsw-alias-label-primary);
|
||
}
|
||
|
||
.suggestButton:disabled {
|
||
opacity: 0.45;
|
||
cursor: default;
|
||
}
|
||
|
||
.suggestBusy {
|
||
color: var(--dsw-alias-interactive-bg-hover-accent);
|
||
animation: commitSuggestPulse 1.2s ease-in-out infinite;
|
||
}
|
||
|
||
@keyframes commitSuggestPulse {
|
||
50% { opacity: 0.45; }
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.suggestBusy { animation: none; }
|
||
}
|
||
|
||
/* The Git card's pinned-model setting (rendered through settings.render). */
|
||
.commitModel {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
padding: 8px 12px;
|
||
}
|
||
|
||
.commitModelTitle {
|
||
font: var(--dsw-font-xxs-strong-12);
|
||
color: var(--dsw-alias-label-primary);
|
||
}
|
||
|
||
.commitModelDesc {
|
||
font: var(--dsw-font-xxs-12);
|
||
color: var(--dsw-alias-label-tertiary);
|
||
}
|
||
|
||
/* Follow-the-conversation switch: a native checkbox (real semantics and
|
||
focus) beside its label, matching the side card's switch rows. */
|
||
.commitModelRow {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 8px;
|
||
}
|
||
|
||
.commitModelSwitch {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
font: var(--dsw-font-xxs-12);
|
||
color: var(--dsw-alias-label-primary);
|
||
cursor: pointer;
|
||
}
|
||
|
||
.commitModelSwitch input {
|
||
accent-color: var(--dsw-alias-interactive-bg-hover-accent);
|
||
}
|
||
|
||
/* The searchable route box: the wrapper span the Menu renders around the
|
||
input. Its default `.root` is `display: inline-flex`, which shrinks to the
|
||
input's intrinsic width — overridden here so the box fills the panel. The
|
||
candidate list itself is portalled to <body> (see the component), so its
|
||
width is pinned to the input at runtime. */
|
||
.commitModelMenuRoot {
|
||
display: block;
|
||
width: 100%;
|
||
}
|
||
|
||
.commitModelBox {
|
||
display: block;
|
||
}
|
||
|
||
/* The stored route, shown on its own line: the search box below stays an empty
|
||
filter, so reopening the picker lists every candidate instead of filtering
|
||
down to the model that is already selected. */
|
||
.commitModelCurrent {
|
||
margin-bottom: 4px;
|
||
font: var(--dsw-font-xxs-strong-12);
|
||
color: var(--dsw-alias-label-primary);
|
||
overflow-wrap: anywhere;
|
||
}
|
||
|
||
.commitModelInput {
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
height: 26px;
|
||
padding: 0 6px;
|
||
border: 1px solid var(--dsw-alias-border-l2);
|
||
border-radius: 6px;
|
||
background: var(--dsw-alias-bg-layer-2);
|
||
color: var(--dsw-alias-label-primary);
|
||
font: var(--dsw-font-xxs-12);
|
||
}
|
||
|
||
.commitModelInput:disabled {
|
||
opacity: 0.45;
|
||
cursor: default;
|
||
}
|
||
|
||
/* One candidate row inside the portalled Menu: the route text plus its source
|
||
badge. The menu shell (background, hover, radius) is the primitive's. */
|
||
.commitModelOption {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
/* border-box, or `width: 100%` plus the horizontal padding overflows its
|
||
label box by 12px — which the Menu's `.itemLabel{overflow:hidden}` then
|
||
slices off the trailing badge. */
|
||
box-sizing: border-box;
|
||
width: 100%;
|
||
padding: 4px 6px;
|
||
border: none;
|
||
border-radius: 4px;
|
||
background: transparent;
|
||
color: var(--dsw-alias-label-primary);
|
||
font: var(--dsw-font-xxs-12);
|
||
text-align: left;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.commitModelOption:hover {
|
||
background: var(--dsw-alias-interactive-bg-hover);
|
||
}
|
||
|
||
/* `flex-basis: auto` (NOT `1`, which is basis 0) matters here: the menu card
|
||
is sized shrink-to-fit, and a zero basis makes that intrinsic width ignore
|
||
the route text — the card then converges on the input's width alone and the
|
||
trailing badge is clipped by the Menu's own `.itemLabel{overflow:hidden}`.
|
||
With auto the text contributes its real width, and `min-width: 0` still lets
|
||
it ellipsize when the card hits the Menu's max-width. */
|
||
.commitModelOptionText {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
/* The badge keeps its full width under any shrink pressure. */
|
||
.commitModelOptionNote {
|
||
flex: 0 0 auto;
|
||
min-width: max-content;
|
||
white-space: nowrap;
|
||
color: var(--dsw-alias-label-tertiary);
|
||
}
|
||
|
||
.commitModelHint {
|
||
font: var(--dsw-font-xxs-12);
|
||
color: var(--dsw-alias-label-tertiary);
|
||
}
|
||
|
||
/* ── Commit graph ──────────────────────────────────────────────────────── */
|
||
|
||
.graphSvg { flex: none; max-width: 40%; height: 22px; overflow: hidden; }
|
||
.graphContent { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; padding-right: 4px; }
|
||
.logRefs { display: inline-flex; gap: 3px; flex-shrink: 1; min-width: 0; max-width: 45%; overflow: hidden; }
|
||
.logRef { flex: none; padding: 0 4px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 3px; font: var(--dsw-font-xxxs-strong-11); color: var(--dsw-alias-brand-primary); white-space: nowrap; }
|
||
|
||
|
||
/* ── Session lens (this round's files) ─────────────────────────────────── */
|
||
|
||
.session { flex: 1; min-height: 0; display: flex; flex-direction: column; }
|
||
.filterRow { flex: none; display: flex; gap: 4px; padding: 6px 12px; flex-wrap: wrap; }
|
||
.sessionList { flex: 1; min-height: 0; overflow-y: auto; padding: 0 6px 10px; gap: 4px; display: flex; flex-direction: column; margin-top: 4px; }
|
||
|
||
/* Every op carries its own path between the badge and trailing meta. Long paths
|
||
truncate inside the row; the title keeps the full path available on hover. */
|
||
.filePath { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dsw-alias-label-tertiary); font-family: var(--ds-font-family-code, monospace); font-size: 11px; }
|
||
|
||
.opRow { position: relative; display: flex; align-items: center; gap: 6px; width: 100%; min-height: 24px; border: 0; border-radius: 4px; background: transparent; color: var(--dsw-alias-label-primary); font: inherit; font-size: 11px; padding: 0 5px; cursor: pointer; text-align: left; }
|
||
.opRow:hover { background: var(--dsw-alias-interactive-bg-hover); }
|
||
/* A failed op carries a quiet error inset bar (the flag chip names it). */
|
||
.opRow[data-op-error='true'] { box-shadow: inset 2px 0 0 var(--dsw-alias-state-error-primary); }
|
||
/* Size + relative time ride as one right-aligned cluster so the kind badges
|
||
form a scannable left rail and the meta column stays flush right. */
|
||
.opMeta { margin-left: auto; display: inline-flex; align-items: baseline; gap: 8px; flex: none; min-width: 0; white-space: nowrap; }
|
||
.opTime { color: var(--dsw-alias-label-tertiary); font-size: 10px; flex: none; }
|
||
.opFlag { color: var(--dsw-alias-state-business-primary); font-size: 10px; flex: none; }
|
||
.opFlagError { color: var(--dsw-alias-state-error-primary); font-size: 10px; flex: none; }
|
||
.opSize { color: var(--dsw-alias-label-tertiary); font-size: 10px; flex: none; font-family: var(--ds-font-family-code, monospace); }
|
||
|
||
/* ── Shared preview pane ───────────────────────────────────────────────── */
|
||
|
||
.redactBanner { flex: none; font: var(--dsw-font-xxxs-strong-11); padding: 2px 8px; border-radius: 2px; color: var(--dsw-alias-state-warn-primary); background: var(--dsw-alias-interactive-bg-hover); white-space: nowrap; }
|
||
.mdBody { padding: 12px 16px 20px; font: var(--dsw-font-xs-13); line-height: 1.6; min-height: 0; overflow-y: auto; }
|
||
.htmlPane { flex: 1; min-height: 0; display: flex; }
|
||
.htmlFrame { flex: 1; width: 100%; border: none; background: var(--dsw-alias-bg-base); }
|
||
|
||
.diffPane { border-top: 1px solid var(--dsw-alias-border-l1); display: flex; flex-direction: column; flex: none; min-height: 0; }
|
||
.dragHandle { flex: none; height: 8px; cursor: ns-resize; position: relative; background: var(--dsw-alias-bg-base); }
|
||
.dragHandle::after { content: ''; position: absolute; left: calc(50% - 18px); top: 3px; width: 36px; height: 2px; border-radius: 1px; background: var(--dsw-alias-border-l2); }
|
||
.dragHandle:hover::after, .dragHandle:focus-visible::after { background: var(--dsw-alias-state-business-primary); }
|
||
|
||
/* ── Bottom pane tab strip (VS Code-style panel) ───────────────────────────
|
||
Only rendered when the pane really hosts two views (a graph commit's
|
||
`details` + its diff); a diff-only preview keeps the strip-less head. The
|
||
strip sits under the drag handle, so the handle stays the pane's top edge
|
||
and the strip doubles as the row that names the active view. */
|
||
.paneTabs { flex: none; display: flex; align-items: center; gap: 2px; height: 28px; padding: 0 8px; border-bottom: 1px solid var(--dsw-alias-border-l1); }
|
||
.paneTab {
|
||
align-self: stretch;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
padding: 0 8px;
|
||
border: none;
|
||
border-bottom: 2px solid transparent;
|
||
background: transparent;
|
||
color: var(--dsw-alias-label-secondary);
|
||
font: var(--dsw-font-xxxs-strong-11);
|
||
cursor: pointer;
|
||
}
|
||
.paneTab:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); }
|
||
.paneTab[data-active='true'] { color: var(--dsw-alias-label-primary); border-bottom-color: var(--dsw-alias-brand-primary); }
|
||
.paneTab:focus-visible { outline: 2px solid var(--dsw-alias-interactive-bg-hover-accent); outline-offset: -2px; }
|
||
|
||
/* The non-diff tab's body: the pane owns the frame, the content fills it and
|
||
scrolls itself (CommitDetails' own section is the scroller). */
|
||
.altBody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
|
||
.diffHead { display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 10px; border-bottom: 1px solid var(--dsw-alias-border-l1); }
|
||
/* The path keeps its tail (the file name is the identity; directories are
|
||
context): an RTL paragraph renders an ASCII path in reading order while
|
||
clipping its HEAD under the ellipsis. */
|
||
.diffPath { flex: 1; direction: rtl; font-family: var(--ds-font-family-code, monospace); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--dsw-alias-label-primary); min-width: 0; }
|
||
.diffStats { flex: none; display: inline-flex; gap: 5px; font-size: 10px; font-family: var(--ds-font-family-code, monospace); }
|
||
|
||
.paneBody { flex: 1; min-height: 0; overflow-y: auto; }
|
||
/* An op's error body: the kit's error ink with the row's inset bar. */
|
||
.readError { border-left: 3px solid var(--dsw-alias-state-error-primary); margin: 6px 8px; padding: 6px 10px; word-break: break-word; }
|
||
|
||
/* The op preview whose callId left the loaded event window. */
|
||
.paneGone { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--dsw-alias-border-l1); }
|
||
|
||
/* ── Shared bits ───────────────────────────────────────────────────────── */
|
||
|
||
/* Mount fade for rows (the app's session-row reveal). */
|
||
@keyframes dsh-row-in {
|
||
from { opacity: 0; }
|
||
}
|
||
|
||
/* Keyboard focus rings match the shared sidebar convention (the kit atoms and
|
||
the tree rows carry their own). */
|
||
.opRow:focus-visible, .scmDisclosure:focus-visible,
|
||
.branchButton:focus-visible, .syncButton:focus-visible, .suggestButton:focus-visible,
|
||
.select:focus-visible, .dragHandle:focus-visible {
|
||
outline: 2px solid var(--dsw-alias-interactive-bg-hover-accent);
|
||
outline-offset: -1px;
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.row { animation: none; }
|
||
}
|