From 12103835ecdb3af7a40658db0b82dc601ee9109c Mon Sep 17 00:00:00 2001 From: Supra4E8C Date: Fri, 27 Mar 2026 19:40:22 +0800 Subject: [PATCH] fix(config): tighten visual editor small-screen layout --- .../config/VisualConfigEditor.module.scss | 54 ++++++++++++++++++- src/pages/ConfigPage.module.scss | 13 +++++ 2 files changed, 66 insertions(+), 1 deletion(-) diff --git a/src/components/config/VisualConfigEditor.module.scss b/src/components/config/VisualConfigEditor.module.scss index 0d02c4d..d727749 100644 --- a/src/components/config/VisualConfigEditor.module.scss +++ b/src/components/config/VisualConfigEditor.module.scss @@ -229,6 +229,10 @@ @media (max-width: 1024px) { grid-template-columns: minmax(0, 1fr); } + + @include mobile { + gap: 16px; + } } .mobileSectionNav { @@ -527,6 +531,10 @@ display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; + + @include mobile { + grid-template-columns: minmax(0, 1fr); + } } .sectionStack { @@ -809,9 +817,19 @@ } @include mobile { + .overview { + gap: 14px; + padding: 18px; + border-radius: 24px; + } + + .overviewFocusLink { + padding: 12px 14px; + } + .sections { border-radius: 26px; - padding: 18px; + padding: 16px; } .subsection { @@ -819,7 +837,41 @@ border-radius: 20px; } + .toggleRow { + padding: 14px 16px; + } + + .blockHeaderRow, + .ruleCardHeader { + align-items: stretch; + } + + .blockHeaderRow :global(.btn), + .ruleCardHeader :global(.btn), + .actionRow :global(.btn), + .stringListRow :global(.btn) { + width: 100%; + justify-content: center; + } + + .actionRow { + justify-content: stretch; + } + .stringListRow { align-items: stretch; } } + +@media (max-width: 380px) { + .overview, + .sections { + padding: 14px; + } + + .subsection, + .ruleCard, + .toggleRow { + padding: 14px; + } +} diff --git a/src/pages/ConfigPage.module.scss b/src/pages/ConfigPage.module.scss index 6ace1f6..3aa3763 100644 --- a/src/pages/ConfigPage.module.scss +++ b/src/pages/ConfigPage.module.scss @@ -53,6 +53,7 @@ @include mobile { grid-template-columns: minmax(0, 1fr); align-items: stretch; + gap: 16px; } } @@ -191,6 +192,11 @@ border: 1px solid color-mix(in srgb, var(--border-color) 82%, transparent); background: color-mix(in srgb, var(--bg-primary) 74%, transparent); box-shadow: var(--shadow); + + @include mobile { + padding: 16px; + border-radius: 28px; + } } .content { @@ -512,3 +518,10 @@ flex: 0 0 auto; } } + +@media (max-width: 380px) { + .pageHeader, + .workspaceShell { + padding: 14px; + } +}