diff --git a/src/client/FloatingWindow.module.css b/src/client/FloatingWindow.module.css
index b6439dc1..33a4c5b3 100644
--- a/src/client/FloatingWindow.module.css
+++ b/src/client/FloatingWindow.module.css
@@ -37,7 +37,7 @@
justify-content: space-between;
gap: var(--ds-sidebar-space-2);
flex: none;
- min-height: 40px;
+ min-height: 36px;
box-sizing: border-box;
padding: 4px var(--ds-sidebar-gutter);
border-bottom: 1px solid var(--dsw-alias-border-l1);
@@ -46,6 +46,20 @@
user-select: none;
}
+/* Native right-sidebar tabs already carry the title and close button; docked
+ windows keep only a slim utility strip for Back + "Pop out". */
+.dockedBar {
+ display: flex;
+ align-items: center;
+ gap: var(--ds-sidebar-space-2);
+ flex: none;
+ min-height: 30px;
+ box-sizing: border-box;
+ padding: 2px var(--ds-sidebar-gutter);
+ border-bottom: 1px solid var(--dsw-alias-border-l1);
+ background: var(--dsw-alias-bg-base);
+}
+
.titleBar:active {
cursor: grabbing;
}
@@ -92,6 +106,7 @@
align-items: center;
gap: var(--ds-sidebar-space-1);
flex: none;
+ margin-inline-start: auto;
}
.windowControl,
@@ -152,10 +167,10 @@
gap: 8px;
flex: none;
box-sizing: border-box;
- min-height: 48px;
- padding: 8px var(--ds-sidebar-gutter);
+ min-height: 42px;
+ padding: 6px var(--ds-sidebar-gutter);
border-top: 1px solid var(--dsw-alias-border-l1);
- background: var(--dsw-alias-bg-layer-1);
+ background: inherit;
}
@media (pointer: coarse) {
@@ -209,13 +224,16 @@
border: 0;
border-radius: 0;
box-shadow: none;
+ background: var(--dsw-alias-bg-base);
}
-.window[data-window-docked='true'] .titleBar { cursor: default; }
+.window[data-window-docked='true'] .toolbar { background: var(--dsw-alias-bg-base); }
.surfaceControl {
display: inline-flex;
align-items: center;
gap: var(--ds-sidebar-space-1);
flex: none;
+ padding-inline: 6px;
+ font-size: 12px;
white-space: nowrap;
}
.surfaceControl svg { flex: none; }
diff --git a/src/client/FloatingWindow.tsx b/src/client/FloatingWindow.tsx
index 3bb39992..8bbec33c 100644
--- a/src/client/FloatingWindow.tsx
+++ b/src/client/FloatingWindow.tsx
@@ -455,11 +455,15 @@ export function FloatingWindow(props: FloatingWindowProps): ReactNode {
onPointerDownCapture={() => { layer.raise() }}
onFocusCapture={() => { layer.raise() }}
>
-
+
{titleLeading !== undefined && (
{titleLeading}
)}
- {title}
+ {!docked && {title}}
{dirty === true && (
)}
- }
- label={closeText}
- title={closeText}
- onClick={() => { void requestCloseRef.current() }}
- />
+ {!docked && (
+ }
+ label={closeText}
+ title={closeText}
+ onClick={() => { void requestCloseRef.current() }}
+ />
+ )}
{hasNode(toolbarRow) && (
diff --git a/src/client/ui/design.module.css b/src/client/ui/design.module.css
index 26a62b33..ce68bd74 100644
--- a/src/client/ui/design.module.css
+++ b/src/client/ui/design.module.css
@@ -6,7 +6,7 @@
--ds-sidebar-space-3: 12px;
--ds-sidebar-space-4: 16px;
--ds-sidebar-space-6: 24px;
- --ds-sidebar-gutter: 16px;
+ --ds-sidebar-gutter: 12px;
--ds-sidebar-control-height: 32px;
--ds-sidebar-control-sm: 26px;
/* The one workbench section bar (VSCode explorer density). */
diff --git a/src/client/ui/index.ts b/src/client/ui/index.ts
index 296f7895..d40bcc4f 100644
--- a/src/client/ui/index.ts
+++ b/src/client/ui/index.ts
@@ -12,8 +12,8 @@ export { WorkbenchSection, type WorkbenchSectionProps } from './WorkbenchSection
export { SelectMenu, type SelectMenuProps, type SelectOption } from './SelectMenu.tsx'
export { TextInput, TextArea, NumberInput, Checkbox, ToggleSwitch, Tabs, SettingRow, type TabOption } from './controls.tsx'
export {
- ActionFooter, ChoiceCard, EmptyState, ErrorBlock, FactList, FactRow, Field, ListRow, StatusLine,
- type ActionFooterProps, type ChoiceCardProps, type ChoiceOption, type EmptyStateProps,
+ ActionFooter, ChoiceCard, Disclosure, EmptyState, ErrorBlock, FactList, FactRow, Field, ListRow, StatusLine,
+ type ActionFooterProps, type ChoiceCardProps, type ChoiceOption, type DisclosureProps, type EmptyStateProps,
type ErrorBlockProps, type Fact, type FactListProps, type FactRowProps, type FieldProps,
type ListRowProps, type PatternTone, type StatusLineProps,
} from './patterns.tsx'
diff --git a/src/client/ui/patterns.module.css b/src/client/ui/patterns.module.css
index a30998ec..3d952770 100644
--- a/src/client/ui/patterns.module.css
+++ b/src/client/ui/patterns.module.css
@@ -73,7 +73,7 @@
gap: var(--ds-sidebar-space-2);
min-width: 0;
min-height: 30px;
- padding: 0 var(--ds-sidebar-space-3);
+ padding: 4px var(--ds-sidebar-space-2);
border-radius: var(--ds-sidebar-radius);
color: var(--dsw-alias-label-primary);
font: var(--dsw-font-xxs-12);
@@ -109,6 +109,8 @@
the measured overflow. */
.listRowName {
min-width: 0;
+ font-size: 13px;
+ line-height: 18px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -481,3 +483,78 @@
@media (pointer: coarse) {
.actionFooter { min-height: 44px; }
}
+
+/* ── Disclosure ─────────────────────────────────────────────────────────── */
+
+.disclosure {
+ min-width: 0;
+}
+
+.disclosureSummary {
+ box-sizing: border-box;
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ min-height: 28px;
+ padding: 2px 0;
+ list-style: none;
+ cursor: pointer;
+ user-select: none;
+ color: var(--dsw-alias-label-secondary);
+ font: var(--dsw-font-xxs-12);
+}
+
+.disclosureSummary::-webkit-details-marker {
+ display: none;
+}
+
+.disclosureSummary:hover {
+ color: var(--dsw-alias-label-primary);
+}
+
+.disclosureSummary:focus-visible {
+ outline: 2px solid var(--dsw-alias-brand-primary);
+ outline-offset: 2px;
+ border-radius: var(--ds-sidebar-radius);
+}
+
+.disclosureChevron {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ flex: none;
+ color: var(--dsw-alias-label-tertiary);
+ transition: transform 140ms ease;
+}
+
+.disclosure[open] > .disclosureSummary > .disclosureChevron {
+ transform: rotate(90deg);
+}
+
+.disclosureLabel {
+ min-width: 0;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.disclosureMeta {
+ margin-inline-start: auto;
+ flex: none;
+ color: var(--dsw-alias-label-tertiary);
+ font: var(--dsw-font-xxxs-11);
+ font-variant-numeric: tabular-nums;
+}
+
+.disclosureBody {
+ min-width: 0;
+ padding-top: var(--ds-sidebar-space-1);
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .disclosureChevron { transition: none; }
+}
+
+@media (pointer: coarse) {
+ .disclosureSummary { min-height: 44px; }
+}
diff --git a/src/client/ui/patterns.tsx b/src/client/ui/patterns.tsx
index fafd1b41..1a349e27 100644
--- a/src/client/ui/patterns.tsx
+++ b/src/client/ui/patterns.tsx
@@ -28,6 +28,7 @@
*/
import type { CSSProperties, MouseEvent, ReactNode } from 'react'
import clsx from 'clsx'
+import { IconChevronRightOutlineRegular } from '@deepseek-ai/dsh-client-ui-primitives'
import { ActionButton } from './kit.tsx'
import css from './patterns.module.css'
@@ -423,3 +424,39 @@ export function ActionFooter({ start, end, bleed, className, ...dataProps }: Act
)
}
+
+/** Props of {@link Disclosure}. */
+export interface DisclosureProps extends DataAttributes {
+ readonly summary: ReactNode
+ readonly meta?: ReactNode
+ readonly open?: boolean
+ readonly className?: string
+ readonly summaryClassName?: string
+ readonly bodyClassName?: string
+ readonly summaryAriaLabel?: string
+ readonly children?: ReactNode
+}
+
+/**
+ * Native `