diff --git a/apps/web/src/components/model.tsx b/apps/web/src/components/model.tsx index b75c1cea..a281f503 100644 --- a/apps/web/src/components/model.tsx +++ b/apps/web/src/components/model.tsx @@ -1,8 +1,8 @@ import { + BrainIcon, CaretDownIcon, CheckIcon, FileMagnifyingGlassIcon, - GaugeIcon, MagnifyingGlassIcon, } from "@phosphor-icons/react"; import { type ModelProvider, ThinkingLevel } from "@codeworksh/widget/codework"; @@ -403,7 +403,7 @@ function Thinking({ hostDir, model, value, onChange }: ThinkingPickerProps) { : "This model does not reason" } > - + {choosable ? levelLabels[shown] : "Reasoning"} { if (event.key !== "ArrowUp" && event.key !== "ArrowDown") return; event.preventDefault(); @@ -165,7 +165,7 @@ export function WorkspacesSettings() { }} onDragEnd={dragEnd} > - + diff --git a/apps/web/src/style.css b/apps/web/src/style.css index 4dd1f5e6..33465387 100644 --- a/apps/web/src/style.css +++ b/apps/web/src/style.css @@ -254,8 +254,24 @@ backdrop-filter: none; } -/* The sidebar opens and closes at once, from its button or its shortcut alike: it is toggled many times a - * day, and tweening the content edge reflows the transcript and composer on every frame. */ +/* The sidebar slides while the content edge and the title bar's controls follow it, all on one curve so + * they move as a unit. Hiding keeps it visible until the slide ends; a drag-resize tracks the pointer. */ +.app-shell [data-slot="sidebar"] > .shell-sidebar { + transition: + transform 200ms var(--ease-drawer), + visibility 0s; +} +.app-shell [data-collapsible="offcanvas"] > .shell-sidebar { + transition: + transform 200ms var(--ease-drawer), + visibility 0s 200ms; +} +.app-shell :is([data-slot="sidebar-gap"], [data-slot="sidebar-navigation"]) { + transition: width 200ms var(--ease-drawer); +} +.app-shell[data-resizing] :is([data-slot="sidebar-gap"], [data-slot="sidebar-navigation"]) { + transition: none; +} @property --composer-height { syntax: ""; diff --git a/apps/web/src/widgets/threads/header.tsx b/apps/web/src/widgets/threads/header.tsx index 9f3d4c42..edb5f60a 100644 --- a/apps/web/src/widgets/threads/header.tsx +++ b/apps/web/src/widgets/threads/header.tsx @@ -122,6 +122,7 @@ export function SectionHeader({ {group !== undefined && ( <> diff --git a/apps/web/src/wm/frame.tsx b/apps/web/src/wm/frame.tsx index 7ddc8358..4db5ec1a 100644 --- a/apps/web/src/wm/frame.tsx +++ b/apps/web/src/wm/frame.tsx @@ -111,7 +111,9 @@ export function Frame(props: FrameProps) { ref={handleRef} className={`flex min-w-0 flex-1 items-center gap-1.5 py-1 ${canDrag ? "cursor-grab active:cursor-grabbing" : ""}`} > - {canDrag && } + {canDrag && ( + + )} {icon !== undefined && } {lead !== undefined && ( <>