进行了一些小修复
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -30,9 +30,9 @@ $can_draft = !empty($ctx['user_id'])
|
||||
|
||||
<div class="but-average">
|
||||
<?php if ($can_draft) : ?>
|
||||
<button type="button" class="but jb-green new-posts-submit aksrt-submit-btn padding-lg" data-action="posts_draft"><i class="fa fas fa-dot-circle mr6"></i><?php esc_html_e('保存草稿', 'aksrt'); ?></button>
|
||||
<button type="button" class="but jb-green new-posts-submit aksrt-submit-btn padding-lg" data-action="posts_draft"><i class="fa fas fa-fw fa-dot-circle"></i><?php esc_html_e('保存草稿', 'aksrt'); ?></button>
|
||||
<?php endif; ?>
|
||||
<button type="button" class="but jb-blue new-posts-submit aksrt-submit-btn padding-lg" data-action="posts_save" id="aksrt-submit-btn"><i class="fa fas fa-check-square mr6"></i><?php printf(esc_html__('提交%s', 'aksrt'), esc_html((string) $ctx['submit_label'])); ?></button>
|
||||
<button type="button" class="but jb-blue new-posts-submit aksrt-submit-btn padding-lg" data-action="posts_save" id="aksrt-submit-btn"><i class="fa fas fa-fw fa-check-square"></i><?php printf(esc_html__('提交%s', 'aksrt'), esc_html((string) $ctx['submit_label'])); ?></button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
@@ -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)/);
|
||||
|
||||
Reference in New Issue
Block a user