From e8968ee87b4938df7e137336adffd2e433e26850 Mon Sep 17 00:00:00 2001 From: Kaloyan Nikolov Date: Thu, 26 Feb 2026 01:53:04 +0100 Subject: [PATCH] feat: center session name in header - Use flexbox to horizontally center session title - Add absolute positioned spacer for menu button - Session name now perfectly centered in the top bar - Message count and streaming badge remain centered below - Export button stays on the right side - All 52 tests passing --- src/components/ChatWindow.tsx | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/src/components/ChatWindow.tsx b/src/components/ChatWindow.tsx index 37de9e5..a574bdc 100644 --- a/src/components/ChatWindow.tsx +++ b/src/components/ChatWindow.tsx @@ -161,17 +161,39 @@ export function ChatWindow({ session, config, onAddMessage }: ChatWindowProps) { height: '100vh', backgroundColor: 'var(--bg-primary)' }}> - {/* Header - Added padding-left to avoid overlap with menu button */} + {/* Header */}
-
+ {/* Menu button area spacer */} +
+ {/* This space is reserved for the menu button in App */} +
+ + {/* Centered Session Name */} +

{getMessageCount()} messages @@ -204,6 +227,8 @@ export function ChatWindow({ session, config, onAddMessage }: ChatWindowProps) {

)}
+ + {/* Export button on the right */}