进行了一些小修复

This commit is contained in:
2026-08-26 20:00:31 +08:00
parent fbada8bd6a
commit 8111b17392
3 changed files with 10 additions and 12 deletions
+3 -10
View File
@@ -520,18 +520,11 @@ body.aksrt-editor-media-open {
display: none !important;
}
.newposts-wrap .but-average {
display: flex;
align-items: stretch;
gap: 10px;
}
.newposts-wrap .but-average > * {
flex: 1 1 0;
}
.newposts-wrap .new-posts-submit {
display: inline-flex;
align-items: center;
justify-content: center;
white-space: nowrap;
}
@media (max-width: 991px) {
+1 -1
View File
@@ -223,7 +223,7 @@ get_header();
}
?>
</div>
<aside class="sidebar">
<aside class="sidebar show-sidebar">
<?php \AKSRT\WidgetSystem\WidgetAreas::render('newposts_sidebar_top'); ?>
<?php
$terms = get_template_directory() . '/templates/parts/submit/sidebar-terms.php';
@@ -39,10 +39,11 @@ test('front submit follows the reference newposts shell and cards', () => {
const submitJs = read('assets/js/front-submit.js');
const submitCss = read('assets/css/frontend/pages/submit.css');
const mainCss = read('assets/css/main.css');
const mobileSubmitCss = submitCss.slice(submitCss.indexOf('@media (max-width: 991px)'));
assert.match(page, /content-wrap newposts-wrap/);
assert.match(page, /class="content-layout"/);
assert.match(page, /class="sidebar"/);
assert.match(page, /class="sidebar show-sidebar"/);
assert.match(main, /zib-widget full-widget-sm editor-main-box/);
assert.match(main, /relative newposts-title/);
assert.match(terms, /newpost-cat-drop drop-select dropdown dependency-box/);
@@ -57,6 +58,10 @@ 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.match(submitCss, /\.newposts-wrap \.new-posts-submit\s*{[^}]*display:\s*inline-flex;[^}]*white-space:\s*nowrap;/);
assert.doesNotMatch(submitCss, /\.newposts-wrap \.but-average\s*>\s*\*\s*{[^}]*flex:\s*1 1 0;/);
assert.match(mobileSubmitCss, /\.newposts-wrap\s*{[^}]*display:\s*block;/);
assert.match(mobileSubmitCss, /\.newposts-wrap > \.sidebar\s*{[^}]*width:\s*100%;/);
});
test('front submit paid resources use the reference modal editor and compact list', () => {