From 10bed01358ccd05b137c650ab3b75ed5e0c77929 Mon Sep 17 00:00:00 2001 From: weishu Date: Fri, 19 Dec 2025 17:06:23 +0800 Subject: [PATCH] fix(web): align SessionHeader content with centered layout Wrap SessionHeader content in a centered container using the same mx-auto w-full max-w-[720px] pattern as HappyThread to ensure the back button and session info align with the main content area instead of appearing at the top-left corner. --- web/src/components/SessionHeader.tsx | 56 ++++++++++++++-------------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/web/src/components/SessionHeader.tsx b/web/src/components/SessionHeader.tsx index 1bb6c2aa..3913a9d1 100644 --- a/web/src/components/SessionHeader.tsx +++ b/web/src/components/SessionHeader.tsx @@ -28,35 +28,37 @@ export function SessionHeader(props: { } return ( -
- {/* Back button */} - + + + + - {/* Session info - two lines: title and path */} -
-
- {title} -
-
- {props.session.metadata?.path ?? props.session.id} + {/* Session info - two lines: title and path */} +
+
+ {title} +
+
+ {props.session.metadata?.path ?? props.session.id} +