进行了一些小修复
This commit is contained in:
@@ -375,10 +375,6 @@ body.aksrt-editor-media-open {
|
||||
border-radius: var(--main-radius, 8px) var(--main-radius, 8px) 0 0;
|
||||
}
|
||||
|
||||
.term-select-box .drop-select {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.term-select-box .drop-btn {
|
||||
width: 100%;
|
||||
min-height: 38px;
|
||||
@@ -397,28 +393,6 @@ body.aksrt-editor-media-open {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
.term-select-box .dropdown-menu {
|
||||
position: static;
|
||||
display: none;
|
||||
width: 100%;
|
||||
margin: -4px 0 6px;
|
||||
padding: 4px 0;
|
||||
border: 1px solid var(--main-border-color, rgba(50, 50, 50, 0.08));
|
||||
border-top: 0;
|
||||
border-radius: 0 0 var(--main-radius, 8px) var(--main-radius, 8px);
|
||||
background: var(--main-bg-color, #fff);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.term-select-box .drop-select.open .dropdown-menu {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.select-drop-box {
|
||||
max-height: 260px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.select-drop-box .aksrt-submit-check {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -37,6 +37,8 @@ test('front submit follows the reference newposts shell and cards', () => {
|
||||
const pay = read('templates/parts/submit/sidebar-pay.php');
|
||||
const submit = read('templates/parts/submit/sidebar-submit.php');
|
||||
const submitJs = read('assets/js/front-submit.js');
|
||||
const submitCss = read('assets/css/frontend/pages/submit.css');
|
||||
const mainCss = read('assets/css/main.css');
|
||||
|
||||
assert.match(page, /content-wrap newposts-wrap/);
|
||||
assert.match(page, /class="content-layout"/);
|
||||
@@ -48,6 +50,9 @@ test('front submit follows the reference newposts shell and cards', () => {
|
||||
assert.match(terms, /aksrt_submit_render_term_checks\(\$ctx\['categories'\], array_map\('intval', \$ctx\['current_cats'\]\), 'category'\)/);
|
||||
assert.doesNotMatch(terms, /aria-expanded=/);
|
||||
assert.doesNotMatch(submitJs, /bindDropSelect|term-select-box \[data-toggle-class/);
|
||||
assert.doesNotMatch(submitCss, /\.term-select-box \.dropdown-menu|\.term-select-box \.drop-select\s*{/);
|
||||
assert.match(mainCss, /\.drop-select \.dropdown-menu\s*{[^}]*box-shadow:\s*0 0 0 8000px/);
|
||||
assert.match(mainCss, /\.open > \.dropdown-menu\s*{[^}]*visibility:\s*unset/);
|
||||
assert.match(pay, /zib-widget dependency-box mb10-sm newpost-pay-box/);
|
||||
assert.match(pay, /pay-dawnload-edit/);
|
||||
assert.match(submit, /separator muted-3-color theme-box/);
|
||||
|
||||
Reference in New Issue
Block a user