From 81b1d7923252a4d0057c49c47681dd45e7e77aee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 14 May 2026 13:30:12 +0200 Subject: [PATCH] =?UTF-8?q?style(coach):=20unify=20X=20/=20cog=20/=20new-c?= =?UTF-8?q?hat=20header=20buttons=20=E2=80=94=20same=20size=20+=20alignmen?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All three header actions (new chat, settings, close) now share the same ghost / size-icon / 36-px hit-target shape with a 16-px icon and identical color treatment. The Sheet's default absolute-positioned close X is gone; the inline close button sits on the same baseline as the others so the cluster reads as a single set. --- .../insights/coach-panel/coach-drawer.tsx | 59 ++++++++++++++----- 1 file changed, 44 insertions(+), 15 deletions(-) diff --git a/src/components/insights/coach-panel/coach-drawer.tsx b/src/components/insights/coach-panel/coach-drawer.tsx index d3f7afa72..332f49032 100644 --- a/src/components/insights/coach-panel/coach-drawer.tsx +++ b/src/components/insights/coach-panel/coach-drawer.tsx @@ -2,7 +2,7 @@ import { useCallback, useState } from "react"; import type { Dispatch, SetStateAction } from "react"; -import { Plus, Settings, Sparkles } from "lucide-react"; +import { Plus, Settings, Sparkles, X } from "lucide-react"; import { Button } from "@/components/ui/button"; import { @@ -14,6 +14,7 @@ import { } from "@/components/ui/select"; import { Sheet, + SheetClose, SheetContent, SheetDescription, SheetHeader, @@ -255,7 +256,13 @@ export function CoachDrawer({ {/* Header (full width). Avatar + title + new-chat button + - settings cog (v1.4.23 H4 — real per-user prompt-tuning - surface, replacing the v1.4.22 B5 dead-button cleanup). - pr-12 keeps the buttons clear of the Sheet's close-X on - narrower viewports. */} + settings cog + close X. v1.4.25 W5 — the three header + actions (new chat, settings, close) all use the same + `ghost / size-icon / size-9` shape so they share a single + visual cluster instead of feeling like three different + controls. The close X used to be the Sheet's absolutely + positioned default; bringing it inline normalises the row + and frees the `pr-*` reservation. */}