From 3952e35c8d573f6bb4a364832ae9e5f5462b3bfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Salavisa?= Date: Thu, 16 Jul 2026 11:21:19 +0100 Subject: [PATCH] fix(web): keep settings section actions aligned on narrow screens (#1727) The section header squeezed the actions toolbar next to the title, so on smaller widths the Workflows toolbar wrapped with its second row left-dangling (Add Workflow floating alone). The header now stacks the actions under the title below sm, protects them from compression by long descriptions, and right-aligns wrapped toolbar rows beside the title. Co-authored-by: Kandev Agent Co-authored-by: Claude Fable 5 --- apps/web/components/settings/settings-section.tsx | 9 ++++++--- .../web/components/settings/workflow-section-actions.tsx | 4 +++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/apps/web/components/settings/settings-section.tsx b/apps/web/components/settings/settings-section.tsx index aaa8fbc36d..cfa1e90479 100644 --- a/apps/web/components/settings/settings-section.tsx +++ b/apps/web/components/settings/settings-section.tsx @@ -17,15 +17,18 @@ export function SettingsSection({ }: SettingsSectionProps) { return (
-
-
+ {/* Stack the action row under the title on narrow screens instead of + squeezing both onto one line; shrink-0 keeps the actions from being + compressed by a long description when side by side. */} +
+

{icon} {title}

{description &&

{description}

}
- {action &&
{action}
} + {action &&
{action}
}
{children}
diff --git a/apps/web/components/settings/workflow-section-actions.tsx b/apps/web/components/settings/workflow-section-actions.tsx index cbc749a4df..39ffd38233 100644 --- a/apps/web/components/settings/workflow-section-actions.tsx +++ b/apps/web/components/settings/workflow-section-actions.tsx @@ -20,7 +20,9 @@ export function WorkflowSectionActions({ onGitHubSync, }: WorkflowSectionActionsProps) { return ( -
+ // sm:justify-end keeps wrapped rows right-aligned next to the section + // title; below sm the toolbar sits under the title, left-aligned. +