From d7de5d5344bb64cd64b5cf8eec7951499757cceb Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Thu, 10 Sep 2026 13:37:48 +0800 Subject: [PATCH] fix(webui): align standalone page widths with conversations Reuse the conversation content width and gutters for Apps, Skills, Automations, and Channels so their main panes are no longer constrained by the narrower settings frame. Make automation columns respond to their container widths to preserve readable messages in narrow panes. Keep the sidebar, regular settings, and existing conversation appearance unchanged, with focused layout regression coverage. Refs NAN-111 --- .../src/components/settings/SettingsPage.tsx | 1 + .../settings/system/AutomationsSettings.tsx | 20 +++++------ .../src/components/thread/ThreadViewport.tsx | 2 +- webui/src/globals.css | 34 ++++++++++++++++++- webui/src/tests/settings-system.test.tsx | 16 +++++++++ webui/src/tests/settings-test-utils.tsx | 1 + webui/src/tests/thread-viewport.test.tsx | 8 +++++ 7 files changed, 70 insertions(+), 12 deletions(-) diff --git a/webui/src/components/settings/SettingsPage.tsx b/webui/src/components/settings/SettingsPage.tsx index a1b73d481..8b4ab8a32 100644 --- a/webui/src/components/settings/SettingsPage.tsx +++ b/webui/src/components/settings/SettingsPage.tsx @@ -721,6 +721,7 @@ export function SettingsPage({ "mx-auto w-full animate-in fade-in-0 slide-in-from-bottom-1 py-6 duration-200 ease-out", "motion-reduce:animate-none sm:py-8 lg:py-12", "settings-grid", + !showSidebar && "settings-feature-page", hostChromeInset && "pt-[4.25rem] sm:pt-[4.25rem] lg:pt-[4.75rem]", )} > diff --git a/webui/src/components/settings/system/AutomationsSettings.tsx b/webui/src/components/settings/system/AutomationsSettings.tsx index e0419d08e..7eca86897 100644 --- a/webui/src/components/settings/system/AutomationsSettings.tsx +++ b/webui/src/components/settings/system/AutomationsSettings.tsx @@ -124,10 +124,10 @@ export function AutomationsSettings({ }, [filtered, selectedJobId]); return ( -