From f143a111cd358319a89149464ba5e33c903e83e2 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 26 Aug 2026 21:23:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E4=BA=86=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E5=B0=8F=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/frontend/pages/submit.css | 41 ++----------------- templates/pages/page-submit.php | 36 ++++++++-------- .../post-editor-reference-contract.test.cjs | 12 +++--- 3 files changed, 28 insertions(+), 61 deletions(-) diff --git a/assets/css/frontend/pages/submit.css b/assets/css/frontend/pages/submit.css index a842a2b6..bf979db4 100644 --- a/assets/css/frontend/pages/submit.css +++ b/assets/css/frontend/pages/submit.css @@ -1,24 +1,5 @@ /* Front-end article editor — follows the reference theme's newposts page. */ -.newposts-wrap { - display: flex; - align-items: flex-start; - gap: 15px; - width: 100%; - margin: 20px 0 30px; -} - -.newposts-wrap > .content-layout { - flex: 1 1 auto; - min-width: 0; -} - -.newposts-wrap > .sidebar { - display: block; - flex: 0 0 300px; - width: 300px; -} - -.newposts-wrap .zib-widget { +#aksrt-submit-form .zib-widget { margin-bottom: 15px; padding: 15px; border-radius: var(--main-radius, 8px); @@ -516,33 +497,17 @@ body.aksrt-editor-media-open { margin-right: 4px; } -.newposts-wrap [hidden] { +#aksrt-submit-form [hidden] { display: none !important; } -.newposts-wrap .new-posts-submit { - display: inline-flex; - align-items: center; - justify-content: center; - white-space: nowrap; -} - @media (max-width: 991px) { - .newposts-wrap { - display: block; + body .newposts-wrap { float: none; } - - .newposts-wrap > .sidebar { - width: 100%; - } } @media (max-width: 767px) { - .newposts-wrap { - margin-top: 10px; - } - .newposts-wrap .zib-widget { border-radius: 0; } diff --git a/templates/pages/page-submit.php b/templates/pages/page-submit.php index 2c871893..fa79f7a4 100644 --- a/templates/pages/page-submit.php +++ b/templates/pages/page-submit.php @@ -223,24 +223,24 @@ get_header(); } ?> - + + diff --git a/tests/widget-system/post-editor-reference-contract.test.cjs b/tests/widget-system/post-editor-reference-contract.test.cjs index 1897ce62..1b6bc922 100644 --- a/tests/widget-system/post-editor-reference-contract.test.cjs +++ b/tests/widget-system/post-editor-reference-contract.test.cjs @@ -43,7 +43,8 @@ test('front submit follows the reference newposts shell and cards', () => { assert.match(page, /content-wrap newposts-wrap/); assert.match(page, /class="content-layout"/); - assert.match(page, /class="sidebar show-sidebar"/); + assert.match(page, /<\/div>\s*<\/div>\s*