63 lines
3.2 KiB
CSS
63 lines
3.2 KiB
CSS
/**
|
|
* Layout push: the bottom workbench occupies layout instead of floating over
|
|
* the conversation. The right column belongs to DSH's native Sidebar, so this
|
|
* stylesheet pushes no width — only the workbench's height.
|
|
*
|
|
* The workbench squeezes only the conversation column. The anchor is the
|
|
* [data-dsh-center-col] tag the Sidebar shell's locator writes on the
|
|
* frame's measured center grid item (Sidebar.tsx locate — not a positional
|
|
* path: the frame also contains an overlay layer and drag handles). A
|
|
* stretched grid item shrinks by its bottom margin, so the conversation
|
|
* output and composer lift without touching either sidebar.
|
|
*
|
|
* The size rides a CSS variable updated by the Sidebar shell (0 while
|
|
* collapsed). Expand/collapse uses the host theme duration; drags disable
|
|
* transitions so the reserved edge tracks the pointer.
|
|
*/
|
|
/* The AppFrame's center column. The Sidebar shell's locator (Sidebar.tsx
|
|
locate/measureCenter, resolving via center-column.ts) tags the measured
|
|
column node with [data-dsh-center-col] — one attribute write per node
|
|
lifetime. The locator anchors on the conversation slot host
|
|
(`main.conversation` on DSH 0.1.5-alpha.2+, `conversation` on alpha.1)
|
|
and skips the transparent display:contents slot hosts above it. The rule
|
|
used to anchor on a structural has()-selector over the conversation slot
|
|
wrapper, whose match cache invalidates on every #root subtree mutation
|
|
(the streaming chat mutates it constantly), re-evaluating the selector
|
|
against the whole document; the tag is evaluated once per node instead.
|
|
A stretched grid item shrinks by its margins, so the conversation
|
|
content (output + input bar) lifts without touching the sidebars. */
|
|
#root [data-dsh-center-col] {
|
|
margin-bottom: var(--dsh-sidebar-height, 0px);
|
|
/* Grid/flex items default to min-height:auto. A long unbreakable token
|
|
(OAuth URL) then grows this column past the viewport and clips the
|
|
composer + left-rail Settings row. min-height:0 lets the cell shrink;
|
|
overflow-wrap lets the token wrap instead of forcing its intrinsic
|
|
size. The host's own descendants remain responsible for scrolling. */
|
|
min-height: 0;
|
|
overflow-wrap: anywhere;
|
|
transition: margin-bottom var(--ds-transition-duration-slow) var(--ds-ease-in-out);
|
|
}
|
|
|
|
/* When the sidebar is collapsed, the toggle cluster reclaims the top-right
|
|
corner. Push the DSH session header's right padding out so its right-aligned
|
|
utilities (the "Session log" download capsule) yield the corner instead of
|
|
hiding under the cluster. The header default right-pads 28px; the 2-button
|
|
cluster spans right 10→70px, so 78px clears it with an 8px gap. Anchor on
|
|
the header's slot host wrapper ([data-slot="conversation.session.header"])
|
|
rather than a positional path: DSH 0.1.x nests the header several levels
|
|
under the center column. The Sidebar shell toggles the body attribute with
|
|
the panel open state. */
|
|
body[data-dsh-sidebar-collapsed] [data-slot="conversation.session.header"] > header {
|
|
padding-right: 78px;
|
|
}
|
|
|
|
body[data-dsh-sidebar-dragging] #root [data-dsh-center-col] {
|
|
transition: none;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
#root [data-dsh-center-col] {
|
|
transition: none;
|
|
}
|
|
}
|