From 0d4be40c25a57c1919c54851157cb445980b4197 Mon Sep 17 00:00:00 2001 From: YoVinchen Date: Sat, 22 Nov 2025 02:03:50 +0800 Subject: [PATCH] refactor(layout): standardize max-width to 60rem and optimize padding structure - Unify container max-width across components: * Replace max-w-4xl with max-w-[60rem] in App.tsx provider list * Replace max-w-5xl with max-w-[60rem] in PromptPanel * Move padding from header element to inner container for consistent spacing - Optimize padding hierarchy: * Remove px-6 from header element, add to inner header container * Remove px-6 from main element, keep it only in provider list container * Consolidate PromptPanel padding: move px-6 from nested divs to outer container * Remove redundant pl-1 sm:pl-2 from logo/title area - Benefits: * Consistent 60rem max-width provides better readability on wide screens * Simplified padding structure reduces CSS complexity * Cleaner responsive behavior with unified spacing rules This creates a more maintainable and visually consistent layout system. --- src/App.tsx | 10 +++++----- src/components/prompts/PromptPanel.tsx | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index b933d0b..fc385a3 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -281,7 +281,7 @@ function App() { return setCurrentView("providers")} />; default: return ( -
+