Files
deepseek-harness/packages/client/ui-primitives/src/QuotePreview.module.css
T
Yichen Jiang 3c839748bd fix(forge): address review on file menu reveal and comment quote summaries
- Reveal the selected file again when files arrive or reorder around it,
  so a navigation that selects a file before the diff loads still scrolls
  the wide pane; a changed filter shows its results from the top.
- Compare quote summaries in draft change detection, so restoring a draft
  that only adds or changes a summary updates the snapshot and storage.
- Read the full path and range instead of the short label to assistive
  technology; the Web snapshot now records src/<file>.
- Type the stored summary schema against QuoteSummary, test the stored
  round trip, and document why revealRow does not use scrollIntoView.
2026-11-06 13:10:37 +08:00

139 lines
2.2 KiB
CSS

.quote {
display: inline-flex;
align-items: baseline;
gap: 4px;
box-sizing: border-box;
max-width: min(80%, 300px);
margin: 0;
padding: 0;
vertical-align: baseline;
color: var(--dsw-alias-state-business-primary);
font-size: var(--dsh-content-font-size, 14px);
line-height: calc(20px + var(--dsh-content-font-delta, 0px));
}
.popoverText {
display: block;
padding: 8px 10px;
color: var(--dsw-alias-label-primary);
font-size: 14px;
line-height: 20px;
overflow-wrap: anywhere;
white-space: pre-wrap;
}
.visuallyHidden {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}
.inlineBody {
color: var(--dsw-alias-label-secondary);
}
.summary {
display: flex;
flex-direction: column;
gap: 4px;
padding: 8px 10px;
font-size: 14px;
line-height: 20px;
}
.summaryTitle {
color: var(--dsw-alias-state-business-primary);
overflow-wrap: anywhere;
}
.summaryDetail {
color: var(--dsw-alias-label-secondary);
}
.summaryBody {
color: var(--dsw-alias-label-primary);
overflow-wrap: anywhere;
white-space: pre-wrap;
}
.source {
min-width: 0;
padding: 0;
border: none;
outline: none;
background: none;
color: inherit;
font: inherit;
line-height: inherit;
text-align: left;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.marker,
.remove {
display: grid;
place-items: center;
align-self: center;
flex: none;
width: 16px;
height: 16px;
padding: 0;
color: inherit;
user-select: none;
}
.marker {
pointer-events: none;
}
.remove {
border: none;
border-radius: 50%;
corner-shape: round;
background: transparent;
cursor: pointer;
}
.quoteMark,
.closeMark {
grid-area: 1 / 1;
transition: opacity 120ms ease;
}
.closeMark {
opacity: 0;
}
.quote[data-removable]:focus-within .quoteMark {
opacity: 0;
}
.quote[data-removable]:focus-within .closeMark {
opacity: 1;
}
@media (hover: hover) {
.quote[data-removable]:hover .quoteMark {
opacity: 0;
}
.quote[data-removable]:hover .closeMark {
opacity: 1;
}
}
@media (hover: none) {
.quote[data-removable] .quoteMark {
opacity: 0;
}
.quote[data-removable] .closeMark {
opacity: 1;
}
}