进行了一些小修复

This commit is contained in:
2026-08-26 21:44:40 +08:00
parent 90646134d4
commit 6eb189ca88
3 changed files with 10 additions and 2 deletions
@@ -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)/);