fix(submit): drop the redundant featured preview type badge

The reference theme renders no type badge in the featured box; the
swiper and dplayer previews are self-explanatory. Remove it from both
preview branches and delete the now-unused CSS rule.
This commit is contained in:
2026-09-06 10:47:24 +08:00
parent b7f5523874
commit 6ffc5ba3d6
4 changed files with 12 additions and 16 deletions
@@ -65,6 +65,16 @@ test('slide cover preview renders a real swiper like the reference theme', () =>
assert.doesNotMatch(js, /escapeHtml\(d\[0\]\.url\)/);
});
test('featured previews carry no type badge like the reference theme', () => {
const featured = read('templates/parts/submit/featured.php');
const js = read('assets/js/front-submit.js');
const css = read('assets/css/frontend/pages/submit.css');
assert.doesNotMatch(featured, /featured-type-badge/);
assert.doesNotMatch(js, /featured-type-badge/);
assert.doesNotMatch(css, /featured-type-badge/);
});
test('submit.css mirrors the reference visibility matrix for the buttons row', () => {
const css = read('assets/css/frontend/pages/submit.css');