From 800d0f4ac0c08459c0b518669e24fb798cab0e2b Mon Sep 17 00:00:00 2001 From: comfydesigner Date: Mon, 21 Sep 2026 18:19:58 -0700 Subject: [PATCH 1/3] feat(layout): symmetric header padding variant Additive enabler for the settings header redesign: headerPadding defaults to the existing classes verbatim; only an explicit 'symmetric' opt-in changes anything. No shared-surface behavior change for any consumer. --- .../widget/layout/BaseModalLayout.stories.ts | 11 +++++++-- .../widget/layout/BaseModalLayout.vue | 24 +++++++++++++++---- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/src/components/widget/layout/BaseModalLayout.stories.ts b/src/components/widget/layout/BaseModalLayout.stories.ts index e0c3aab6a09..b576d068c5d 100644 --- a/src/components/widget/layout/BaseModalLayout.stories.ts +++ b/src/components/widget/layout/BaseModalLayout.stories.ts @@ -24,6 +24,7 @@ interface StoryArgs { hasHeader: boolean hasContentFilter: boolean hasHeaderRightArea: boolean + headerPadding: 'default' | 'symmetric' cardCount: number } @@ -46,6 +47,11 @@ const meta: Meta = { control: 'boolean', description: 'Toggle header visibility' }, + headerPadding: { + control: 'select', + options: ['default', 'symmetric'], + description: 'Header bar spacing; symmetric matches the settings dialog' + }, hasContentFilter: { control: 'boolean', description: 'Toggle content filter visibility' @@ -172,7 +178,7 @@ const createStoryTemplate = (args: StoryArgs) => ({ }, template: `
- + - +