Consume the card:'web' result view (structured sources + answer for search, the URL and HTTP status for fetch) the web backend PR added. WebBlock (ui-primitives) draws both kinds via the kind discriminant: a citation list of safe external links (the MarkdownText protocol allowlist, title-or-hostname label), a truncation indicator, a height cap matching TerminalBlock; a fetch summary for the other kind. web-card-model is the single resultView derivation; a keyed WebRow registers under web_search and web_fetch with the card resident under its summary. The generic fallback and the details panel are web-aware. Fixture gains web_search and web_fetch turns for the built-boot snapshot.
115 lines
2.5 KiB
CSS
115 lines
2.5 KiB
CSS
/* Details third column, minimal P-I fill: header (name + close) over a
|
|
scrolling body of Input/Output code sections. Panel width/squeeze belongs
|
|
to layout; this fills whatever the column gives. */
|
|
|
|
.root {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
min-width: 0;
|
|
border-left: 1px solid var(--dsw-alias-border-l2);
|
|
background: var(--dsw-alias-bg-base);
|
|
}
|
|
|
|
/* figma RightSidebar header frame (I54:42735;43:36451): pad 14/12/12/12, gap 8. */
|
|
.header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
padding: 14px 12px 12px;
|
|
border-bottom: 1px solid var(--dsw-alias-border-l2);
|
|
}
|
|
|
|
/* figma I54:42735;43:41479: 14/20 wt500. */
|
|
.title {
|
|
overflow: hidden;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
font-weight: 500;
|
|
color: var(--dsw-alias-label-primary);
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.close {
|
|
display: grid;
|
|
flex: none;
|
|
place-items: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
border: none;
|
|
border-radius: 999px;
|
|
background: transparent;
|
|
color: var(--dsw-alias-label-secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.close:hover {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
}
|
|
|
|
.body {
|
|
flex: 1;
|
|
min-height: 0;
|
|
padding: 12px 16px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.empty {
|
|
padding: 8px 0;
|
|
font-size: 13px;
|
|
line-height: 20px;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
.section {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.sectionLabel {
|
|
margin-bottom: 6px;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
font-weight: 500;
|
|
color: var(--dsw-alias-label-secondary);
|
|
}
|
|
|
|
/* figma Code-block (I54:42735;43:41429): r12, pad 16, mono 13/22. */
|
|
.code {
|
|
margin: 0;
|
|
padding: 16px;
|
|
border-radius: 12px;
|
|
background: var(--dsw-alias-markdown-code-block);
|
|
font-family: var(--ds-font-family-code);
|
|
font-size: 13px;
|
|
line-height: 22px;
|
|
color: var(--dsw-alias-label-primary);
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.code[data-error] {
|
|
color: var(--dsw-alias-state-error-primary);
|
|
}
|
|
|
|
/* Above the card, which is where the render-intent contract puts a terminal
|
|
call's description; the panel has no summary row to carry it. */
|
|
.terminalDescription {
|
|
margin: 0 0 6px;
|
|
color: var(--dsw-alias-label-secondary);
|
|
font: var(--dsw-font-xs-13);
|
|
}
|
|
|
|
/* The terminal card sits directly under its section label, so it drops the
|
|
primitive's standalone vertical margin; the section owns the spacing. */
|
|
.terminal {
|
|
margin: 0;
|
|
}
|
|
|
|
/* Same rule for the web card: it sits under the section label, so the section
|
|
owns the spacing rather than the primitive's own vertical margin. */
|
|
.web {
|
|
margin: 0;
|
|
}
|