diff --git a/docs/SIDEBAR.md b/docs/SIDEBAR.md index 4524d2a..8df077a 100644 --- a/docs/SIDEBAR.md +++ b/docs/SIDEBAR.md @@ -70,7 +70,7 @@ command. `` follows in the rail's colour when shown. There is no state word and no second badge: the rail exists so the state is still legible when a row is dimmed or the terminal renders the duration in the default fg. -In the **web client** the rail is a 5px bar pinned to the row's own left +In the **web client** the rail is a 7px bar pinned to the row's own left edge, square corners, spanning the full card height edge to edge — it shifts outward with nesting depth along with the row's own padding, since it is positioned relative to the row. It carries motion only for states that diff --git a/web/src/components/layout/MultiView.test.tsx b/web/src/components/layout/MultiView.test.tsx index 239fdd6..ae4b707 100644 --- a/web/src/components/layout/MultiView.test.tsx +++ b/web/src/components/layout/MultiView.test.tsx @@ -105,7 +105,7 @@ describe("MultiView", () => { expect(screen.getByText("Tab 1 · 1")).toBeTruthy(); const pane = document.querySelector('[data-session-id="s9"]'); expect(pane).toBeTruthy(); - expect(pane!.querySelector(".bg-preview-tint")).toBeTruthy(); + expect(pane!.classList.contains("is-preview")).toBe(true); expect(screen.getByText("preview")).toBeTruthy(); }); diff --git a/web/src/components/layout/MultiView.tsx b/web/src/components/layout/MultiView.tsx index 167a47f..54f5635 100644 --- a/web/src/components/layout/MultiView.tsx +++ b/web/src/components/layout/MultiView.tsx @@ -188,8 +188,9 @@ function Pane({ return (
{leaf.sessionId ? ( diff --git a/web/src/components/layout/PaneTitle.tsx b/web/src/components/layout/PaneTitle.tsx index ba7fcb9..9366019 100644 --- a/web/src/components/layout/PaneTitle.tsx +++ b/web/src/components/layout/PaneTitle.tsx @@ -15,7 +15,7 @@ export interface PaneTitleProps { export function PaneTitle({ sessionId, session, className }: PaneTitleProps) { if (!session) { return ( - + session {sessionId.slice(0, 8)} ); @@ -27,7 +27,7 @@ export function PaneTitle({ sessionId, session, className }: PaneTitleProps) { const icon = tool ? toolIconSvg(tool) : null; return ( - + {name} {showCommand && ( diff --git a/web/src/components/sidebar/ActivityRail.tsx b/web/src/components/sidebar/ActivityRail.tsx index 6db0a59..9b54873 100644 --- a/web/src/components/sidebar/ActivityRail.tsx +++ b/web/src/components/sidebar/ActivityRail.tsx @@ -1,4 +1,4 @@ -// docs/SIDEBAR.md: a 5px bar pinned to the row's own left edge, square +// docs/SIDEBAR.md: a 7px bar pinned to the row's own left edge, square // corners, full card height. It paints for every card, Idle included, and it // carries the accessible name of the state so status is never colour-only. @@ -37,7 +37,7 @@ export function ActivityRail({ activity }: { activity: ActivityState | string | const word = STATE_WORDS[slug] ?? STATE_WORDS.idle; return (