From b2985f88de6a6a1b19681e4643a17a10cbf2b89b Mon Sep 17 00:00:00 2001 From: Chaim Date: Sun, 3 May 2026 18:32:31 +0000 Subject: [PATCH] fix(ui): use 3-column grid in header Row 1 for true viewport-centered search MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous flex layout used `flex-1` on the search wrapper, which centers the search relative to the *remaining* space — so as the brand subtitle grows ("עוזר משפטי · ערר 8137-24 · ניסוח") or the agent trigger label changes, the search drifts off-center. Switches Row 1 to `grid-cols-[minmax(0,1fr)_minmax(280px,460px)_minmax(0,1fr)]`: brand on the right, search in the middle (anchored to the viewport midpoint), agent dropdown on the left. The side cells flex equally so the center stays put regardless of side content width. Co-Authored-By: Claude Opus 4.7 (1M context) --- web-ui/src/components/app-shell.tsx | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/web-ui/src/components/app-shell.tsx b/web-ui/src/components/app-shell.tsx index 76354e7..0f68319 100644 --- a/web-ui/src/components/app-shell.tsx +++ b/web-ui/src/components/app-shell.tsx @@ -87,25 +87,33 @@ export function AppShell({ children }: { children: ReactNode }) { shadow-md " > - {/* ─── Row 1 — brand bar ─── */} -
- - + {/* ─── Row 1 — brand bar (3-column grid) ─── */} + {/* Side columns flex 1fr each so the search column stays centered on + the viewport regardless of how wide the brand or agent labels grow. */} +
+ + עוזר משפטי - + {subtitle} -
+
- + ניהול סוכנים