# Conflicts: # apps/web/tests/forge-panel.e2e.ts # docs/config-catalog.md # docs/config-catalog.zh.md # docs/subsystems/forge.i18n.yaml # docs/subsystems/forge.md # docs/subsystems/forge.zh.md # packages/experimental/client-ui-forge/README.i18n.yaml # packages/experimental/client-ui-forge/README.md # packages/experimental/client-ui-forge/README.zh.md # packages/experimental/client-ui-forge/src/client/ChangesTab.tsx # packages/experimental/client-ui-forge/src/client/mount.ts # packages/experimental/client-ui-forge/src/client/thread-state.ts # packages/experimental/client-ui-forge/src/index.ts # packages/experimental/client-ui-forge/tests/changes-tab.client.spec.tsx # packages/experimental/client-ui-forge/tests/mount.client.spec.ts # packages/experimental/client-ui-forge/tests/review-cache.host.spec.ts # packages/experimental/client-ui-forge/tests/review.host.spec.ts # packages/experimental/forge-github/README.i18n.yaml # packages/experimental/forge-github/src/threads.ts # packages/experimental/forge-github/tests/threads.spec.ts # packages/experimental/forge/src/types.ts # packages/experimental/forge/tests/registry.spec.ts # packages/extensions/tool-cordis/src/api-catalog.ts
318 lines
7.1 KiB
CSS
318 lines
7.1 KiB
CSS
/* Review thread cards share the inline review form's card material; comment rows follow the conversation's 13px detail size. */
|
|
.card,
|
|
.folded {
|
|
box-sizing: border-box;
|
|
width: calc(100% - 20px);
|
|
max-width: 720px;
|
|
margin: 10px;
|
|
border: 0.5px solid var(--dsw-alias-border-l3);
|
|
border-radius: var(--dsw-radius-md);
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
color: var(--dsw-alias-label-primary);
|
|
font: var(--dsw-font-xs-13);
|
|
font-family: Inter, var(--dsw-font-family);
|
|
white-space: normal;
|
|
}
|
|
|
|
.card { padding: 10px 12px; }
|
|
|
|
/* A card a jump from a covering thread list focused; a pointer jump shows no ring. */
|
|
.card:focus { outline: none; }
|
|
|
|
.card:focus-visible {
|
|
outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));
|
|
outline-offset: -1px;
|
|
}
|
|
|
|
.card[data-split][data-side="R"],
|
|
.folded[data-split][data-side="R"] {
|
|
margin-inline-start: clamp(10px, calc(100% - 740px), calc(50% + 10px));
|
|
}
|
|
|
|
.card[data-resolved] { background: var(--dsw-alias-bg-layer-2); }
|
|
|
|
.folded {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-height: 32px;
|
|
padding: 4px 12px;
|
|
color: var(--dsw-alias-label-secondary);
|
|
}
|
|
|
|
.folded > svg { flex: none; color: var(--dsw-alias-state-success-primary); }
|
|
|
|
.foldedText {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 6px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.place {
|
|
min-width: 0;
|
|
color: var(--dsw-alias-label-secondary);
|
|
font-size: 12px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.spacer { flex: 1; }
|
|
|
|
/* Text actions inside a card: no fill, accent ink, the same height as the tags beside them. */
|
|
.link {
|
|
display: inline-flex;
|
|
flex: none;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--dsw-alias-state-business-primary);
|
|
font: inherit;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.link:disabled { color: var(--dsw-alias-label-dimmed); cursor: default; }
|
|
|
|
.link:focus-visible {
|
|
border-radius: var(--dsw-radius-xs);
|
|
outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.link:not(:disabled):hover { text-decoration: underline; }
|
|
}
|
|
|
|
.turned { transform: rotate(-90deg); }
|
|
|
|
.comments {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.comment {
|
|
display: flex;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.avatar {
|
|
display: inline-flex;
|
|
flex: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
border-radius: 50%;
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
color: var(--dsw-alias-label-secondary);
|
|
font-weight: 500;
|
|
line-height: 1;
|
|
user-select: none;
|
|
}
|
|
|
|
.avatar img {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.commentMain {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.commentHeader {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-height: 20px;
|
|
}
|
|
|
|
.login { font-weight: 500; overflow-wrap: anywhere; }
|
|
|
|
.time { color: var(--dsw-alias-label-tertiary); font-size: 12px; }
|
|
|
|
.body {
|
|
min-width: 0;
|
|
margin-top: 2px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
margin: 10px -8px -4px;
|
|
}
|
|
|
|
/* A reply or a comment edit uses the inline review form's field; its actions sit under it like the form's. */
|
|
.form { margin-top: 10px; }
|
|
|
|
.formActions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
/* The collapsed reply field, a field-shaped button that opens the reply form. */
|
|
.replyPrompt {
|
|
display: block;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
min-height: 32px;
|
|
margin-top: 10px;
|
|
padding: 6px 12px;
|
|
border: 0.5px solid var(--dsw-alias-border-l4);
|
|
border-radius: var(--dsw-radius-md);
|
|
background: var(--dsw-alias-bg-layer-3);
|
|
color: var(--dsw-alias-label-dimmed);
|
|
font: inherit;
|
|
text-align: start;
|
|
cursor: text;
|
|
}
|
|
|
|
.replyPrompt:focus-visible {
|
|
outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.menuAnchor { display: inline-flex; flex: none; }
|
|
|
|
/* The comment menu's icon button keeps the 20px row height of the header it ends. */
|
|
.icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 20px;
|
|
height: 20px;
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: var(--dsw-radius-xs);
|
|
background: transparent;
|
|
color: var(--dsw-alias-label-secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.icon[aria-expanded="true"] { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); }
|
|
|
|
.icon:focus-visible {
|
|
outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.icon:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); }
|
|
}
|
|
|
|
/* Confirming a deletion replaces nothing: the comment stays readable above the question. */
|
|
.confirm {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.confirmText { flex: 1 1 auto; min-width: 0; color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere; }
|
|
|
|
.confirmError,
|
|
.actionError { flex-basis: 100%; margin-top: 0; }
|
|
|
|
.actionError { padding-inline: 8px; }
|
|
|
|
/* The end of the recorded hunk, drawn like the diff rows it came from. */
|
|
.excerpt,
|
|
.original {
|
|
margin-bottom: 10px;
|
|
overflow-x: auto;
|
|
border: 0.5px solid var(--dsw-alias-border-l2);
|
|
border-radius: var(--dsw-radius-sm);
|
|
font: var(--dsw-font-markdown-code-block);
|
|
}
|
|
|
|
.excerptLine,
|
|
.originalLine {
|
|
min-height: 20px;
|
|
padding: 0 10px;
|
|
line-height: 20px;
|
|
white-space: pre;
|
|
}
|
|
|
|
.excerptHeader { color: var(--dsw-alias-label-tertiary); }
|
|
|
|
.added { background: var(--dsw-alias-file-diff-added-bg); }
|
|
|
|
.deleted { background: var(--dsw-alias-file-diff-deleted-bg); }
|
|
|
|
.original {
|
|
max-height: 320px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.originalLine {
|
|
display: grid;
|
|
grid-template-columns: max-content minmax(0, 1fr);
|
|
gap: 12px;
|
|
}
|
|
|
|
.originalNumber {
|
|
min-width: 3ch;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
text-align: right;
|
|
user-select: none;
|
|
}
|
|
|
|
.marked { background: var(--dsw-alias-interactive-bg-hover); }
|
|
|
|
.originalNote {
|
|
padding: 8px 10px;
|
|
color: var(--dsw-alias-label-secondary);
|
|
font-family: Inter, var(--dsw-font-family);
|
|
}
|
|
|
|
/* Outdated threads of one file, after its lines. */
|
|
.outdated {
|
|
border-top: 0.5px solid var(--dsw-alias-border-l3);
|
|
padding-bottom: 2px;
|
|
}
|
|
|
|
.outdatedHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-height: 32px;
|
|
padding: 0 12px;
|
|
color: var(--dsw-alias-label-secondary);
|
|
font: var(--dsw-font-xs-13);
|
|
font-family: Inter, var(--dsw-font-family);
|
|
}
|
|
|
|
/* A changes view narrower than 480px gives the code more width; the query names no container, since CSS Modules rename
|
|
a container name per file, and the nearest inline-size container is the changes view. */
|
|
@container (max-width: 479px) {
|
|
.card,
|
|
.folded,
|
|
.card[data-split][data-side="R"],
|
|
.folded[data-split][data-side="R"] {
|
|
width: calc(100% - 12px);
|
|
margin: 6px;
|
|
}
|
|
}
|