diff --git a/assets/css/frontend/pages/submit.css b/assets/css/frontend/pages/submit.css index 49cb1127..b5c36710 100644 --- a/assets/css/frontend/pages/submit.css +++ b/assets/css/frontend/pages/submit.css @@ -11,6 +11,11 @@ white-space: nowrap; } +#aksrt-submit-form .but-average > .new-posts-submit { + min-width: 0; + flex: 1 1 50%; +} + .editor-main-box { overflow: hidden; } diff --git a/templates/parts/submit/sidebar-submit.php b/templates/parts/submit/sidebar-submit.php index 7cd7fb5f..3c8285af 100644 --- a/templates/parts/submit/sidebar-submit.php +++ b/templates/parts/submit/sidebar-submit.php @@ -30,9 +30,9 @@ $can_draft = !empty($ctx['user_id'])
- + - +
diff --git a/tests/widget-system/post-editor-reference-contract.test.cjs b/tests/widget-system/post-editor-reference-contract.test.cjs index b056cab8..78b499c7 100644 --- a/tests/widget-system/post-editor-reference-contract.test.cjs +++ b/tests/widget-system/post-editor-reference-contract.test.cjs @@ -61,8 +61,11 @@ test('front submit follows the reference newposts shell and cards', () => { assert.match(pay, /pay-dawnload-edit/); assert.match(submit, /separator muted-3-color theme-box/); assert.match(submit, /new-posts-submit/); + assert.equal((submit.match(/fa-fw/g) || []).length, 2); + assert.doesNotMatch(submit, /fa-(?:dot-circle|check-square) mr6/); assert.match(publicCss, /\.but-average\s*>\s*\.but\s*{[^}]*flex:\s*auto/); assert.match(submitCss, /#aksrt-submit-form \.new-posts-submit\s*{[^}]*white-space:\s*nowrap;/); + assert.match(submitCss, /#aksrt-submit-form \.but-average > \.new-posts-submit\s*{[^}]*min-width:\s*0;[^}]*flex:\s*1 1 50%;/); assert.match(mobileSubmitCss, /body \.newposts-wrap\s*{[^}]*float:\s*none;/); assert.match(mobileSubmitCss, /body \.sidebar\.show-sidebar\s*{[^}]*display:\s*unset;[^}]*width:\s*100%;[^}]*margin-left:\s*0;/); assert.doesNotMatch(submitCss, /\.newposts-wrap\s*>\s*\.(?:content-layout|sidebar)/);