对小工具进行了一些修复
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user