From a2bdc7323680f31aa33f3318ee54aa49ff6cb5e5 Mon Sep 17 00:00:00 2001 From: weishu Date: Tue, 23 Dec 2025 18:37:27 +0800 Subject: [PATCH] refactor(web): unify max-width constraints with tailwind content class Adds maxWidth.content: '720px' to tailwind.config.ts for centralized width management across the web app. Replaces all hardcoded max-w-[720px] references with the new max-w-content class. Adds missing max-width constraints to file.tsx, files.tsx, and SessionList.tsx. Moves border-b dividers from outer full-width divs to inner max-w-content divs for consistent visual hierarchy. --- .../AssistantChat/HappyComposer.tsx | 2 +- .../components/AssistantChat/HappyThread.tsx | 2 +- web/src/components/SessionHeader.tsx | 2 +- web/src/components/SessionList.tsx | 2 +- web/src/routes/sessions/file.tsx | 106 ++++++----- web/src/routes/sessions/files.tsx | 178 +++++++++--------- web/tailwind.config.ts | 6 +- 7 files changed, 157 insertions(+), 141 deletions(-) diff --git a/web/src/components/AssistantChat/HappyComposer.tsx b/web/src/components/AssistantChat/HappyComposer.tsx index cdd36bf0..a350b27b 100644 --- a/web/src/components/AssistantChat/HappyComposer.tsx +++ b/web/src/components/AssistantChat/HappyComposer.tsx @@ -437,7 +437,7 @@ export function HappyComposer(props: { return (
-
+
{overlays} diff --git a/web/src/components/AssistantChat/HappyThread.tsx b/web/src/components/AssistantChat/HappyThread.tsx index 434b9873..e8f4795e 100644 --- a/web/src/components/AssistantChat/HappyThread.tsx +++ b/web/src/components/AssistantChat/HappyThread.tsx @@ -135,7 +135,7 @@ export function HappyThread(props: {
-
+