对小工具进行了一些修复

This commit is contained in:
2026-08-26 09:47:55 +08:00
parent 411905f919
commit c6b1acfe0e
2 changed files with 17 additions and 23 deletions
@@ -41,6 +41,20 @@ test('homepage horizontal cards render fully from legacy CSS with no dedicated s
assert.doesNotMatch(widgetCss, /aksrt-widget-icon-cards \.icon-cover-card/);
});
test('widget icon cards restore the reference surface height without compact overrides', () => {
const widgetCss = read('assets/widgets/frontend.css');
assert.match(
widgetCss,
/\.zib-widget\s*\{[^}]*margin-bottom:\s*20px[^}]*padding:\s*15px[^}]*box-shadow:\s*0 0 10px/s,
);
assert.match(widgetCss, /\.zib-widget\.padding-10\s*\{\s*padding:\s*10px/);
assert.match(widgetCss, /\.zib-widget\.nobottom\.notop\s*\{[^}]*padding-top:\s*0[^}]*padding-bottom:\s*0/s);
assert.doesNotMatch(widgetCss, /\.row\.gutters-5/);
assert.doesNotMatch(widgetCss, /\.icon-card\s*,\s*\.icon-cover-card\s*\{\s*font-size:\s*12px/);
assert.doesNotMatch(widgetCss, /\.icon-cover-card\s*\{[^}]*padding-(?:top|bottom)/s);
});
test('header icon-card defaults use bundled Font Awesome icons', () => {
const defaults = [
read('src/Admin/Schema/SchemaPageDisplay.php'),