Keep folded process counts visible

This commit is contained in:
QQ 2026-11-28 14:52:53 +08:00
parent a0366b91cc
commit 54d8099004
3 changed files with 12 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@ -530,11 +530,9 @@
.priorFoldDrawer { display: flex; flex-direction: column; gap: 14px; min-width: 0; width: 100%; } .priorFoldDrawer { display: flex; flex-direction: column; gap: 14px; min-width: 0; width: 100%; }
.jump { margin-top: -34px; flex: none; width: 34px; height: 34px; display: flex; justify-content: center; align-items: center; padding: 0; border: 0; border-radius: 100px; color: var(--dsw-alias-label-primary); background: var(--dsw-alias-button-floating-fill, var(--dsw-alias-bg-base)); box-shadow: var(--dsw-elevation-panel, 0 2px 8px var(--dsw-alias-border-l1)); pointer-events: auto; } .jump { margin-top: -34px; flex: none; width: 34px; height: 34px; display: flex; justify-content: center; align-items: center; padding: 0; border: 0; border-radius: 100px; color: var(--dsw-alias-label-primary); background: var(--dsw-alias-button-floating-fill, var(--dsw-alias-bg-base)); box-shadow: var(--dsw-elevation-panel, 0 2px 8px var(--dsw-alias-border-l1)); pointer-events: auto; }
.jump:hover { background: var(--dsw-alias-button-floating-hover, var(--dsw-alias-interactive-bg-hover)); } .jump:hover { background: var(--dsw-alias-button-floating-hover, var(--dsw-alias-interactive-bg-hover)); }
/* The digest is a single line. nowrap on the parent does not stop the parts /* Keep each label and count together when a longer digest needs another line. */
from wrapping, so each part is pinned too and the run clips with an ellipsis .foldSummary { display: inline-flex; align-items: baseline; flex-wrap: wrap; min-width: 0; }
when the column is narrow. */ .foldSummaryPart { display: inline-flex; align-items: baseline; white-space: nowrap; flex: none; }
.foldSummary { display: inline-flex; align-items: baseline; white-space: nowrap !important; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.foldSummaryPart { display: inline-flex; align-items: baseline; white-space: nowrap !important; flex: none; }
.numberRollRoot { display: inline-flex; position: relative; overflow: hidden; vertical-align: baseline; line-height: inherit; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; white-space: nowrap !important; flex-shrink: 0; min-width: 1.45em; justify-content: center; text-align: center; } .numberRollRoot { display: inline-flex; position: relative; overflow: hidden; vertical-align: baseline; line-height: inherit; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; white-space: nowrap !important; flex-shrink: 0; min-width: 1.45em; justify-content: center; text-align: center; }
.numberRollSizer { visibility: hidden; user-select: none; pointer-events: none; line-height: inherit; white-space: nowrap; } .numberRollSizer { visibility: hidden; user-select: none; pointer-events: none; line-height: inherit; white-space: nowrap; }
.numberRollDigit { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; line-height: inherit; white-space: nowrap; } .numberRollDigit { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; line-height: inherit; white-space: nowrap; }
@ -572,7 +570,6 @@
.flowCellInner:empty { padding-bottom: 0; } .flowCellInner:empty { padding-bottom: 0; }
.choreographedFlow[data-reader-transition=collapse] .flowCell * { animation-play-state: paused !important; } .choreographedFlow[data-reader-transition=collapse] .flowCell * { animation-play-state: paused !important; }
.numberRollExit, .numberRollEnter { animation-duration: 160ms; } .numberRollExit, .numberRollEnter { animation-duration: 160ms; }
.foldSummary { display: inline-flex; align-items: baseline; flex-wrap: nowrap !important; white-space: nowrap !important; }
/* A flex item's intrinsic width must include its real label and chevron. /* A flex item's intrinsic width must include its real label and chevron.
The previous shrink-to-fit + max-width chain clipped even four CJK glyphs. */ The previous shrink-to-fit + max-width chain clipped even four CJK glyphs. */
/* Footer precedence (host ConversationRoot): the sticky composer seat owns /* Footer precedence (host ConversationRoot): the sticky composer seat owns
@ -621,7 +618,6 @@
.foldStop[data-on] { background: var(--dsw-alias-bg-base); color: var(--dsw-alias-label-primary); } .foldStop[data-on] { background: var(--dsw-alias-bg-base); color: var(--dsw-alias-label-primary); }
.flowCell[data-flow-summary] > .flowCellInner { padding-bottom: 0; } .flowCell[data-flow-summary] > .flowCellInner { padding-bottom: 0; }
.flowCell[data-flow-summary] .disclosureButton, .closedProcessSummary .disclosureButton { width: auto; max-width: 100%; } .flowCell[data-flow-summary] .disclosureButton, .closedProcessSummary .disclosureButton { width: auto; max-width: 100%; }
.flowCell[data-flow-summary] .foldSummary, .closedProcessSummary .foldSummary { min-width: 0; }
.disclosureButton:has([data-reader-fold-summary]), .disclosureButton:has([data-reader-fold-summary]),
.turnProcessSticky > .disclosure > .disclosureButton { .turnProcessSticky > .disclosure > .disclosureButton {
margin-left: 0; margin-left: 0;

View File

@ -64,3 +64,11 @@ test('completed timing and record summary share one measured status lane', () =>
assert.match(reader, /<StickyLane kind="status"[^>]*>[\s\S]*?<GroupStatus[\s\S]*?<ClosedProcessSummary[\s\S]*?<\/StickyLane>/u); assert.match(reader, /<StickyLane kind="status"[^>]*>[\s\S]*?<GroupStatus[\s\S]*?<ClosedProcessSummary[\s\S]*?<\/StickyLane>/u);
assert.match(readerCss, /\.closedProcessSummary\.summaryRow \{[^}]*flex-wrap: nowrap/u); assert.match(readerCss, /\.closedProcessSummary\.summaryRow \{[^}]*flex-wrap: nowrap/u);
}); });
test('process summary wraps between labels and keeps the last counter visible', () => {
const rules = [...readerCss.matchAll(/^\.foldSummary \{([^}]*)\}/gmu)].map(match => match[1]);
assert.equal(rules.length, 1);
assert.match(rules[0] ?? '', /flex-wrap: wrap/u);
assert.doesNotMatch(rules[0] ?? '', /overflow: hidden|text-overflow/u);
assert.match(readerCss, /\.foldSummaryPart \{[^}]*white-space: nowrap/u);
});