Keep scenario validation notes readable at narrower widths
This commit is contained in:
parent
0dddaf5dd8
commit
00f5b96544
@ -47,6 +47,7 @@ fs.mkdirSync(output,{recursive:true});
|
||||
for(const [selector,ratio]of contrasts)assert(ratio>=4.5,`${mode}/${view}/${key}/${selector}: contrast ${ratio}`);
|
||||
await p.screenshot({path:path.join(output,`${mode}-${view}-${key}.png`),fullPage:true});
|
||||
await p.setViewportSize({width:650,height:900});
|
||||
if(view==='Timeline')await p.locator('.scenario-scroll').evaluate(e=>e.scrollLeft=0);
|
||||
assert(await p.evaluate(()=>document.documentElement.scrollWidth<=innerWidth+1),`${mode}/${view}/${key}: page overflow`);
|
||||
await p.screenshot({path:path.join(output,`${mode}-${view}-${key}-narrow.png`),fullPage:true});
|
||||
}
|
||||
|
||||
@ -855,3 +855,5 @@ html[data-app-theme] .scenario-workspace :is(h1, h2, h3) {
|
||||
color: var(--pd-heading);
|
||||
font-family: var(--pd-font-ui);
|
||||
}
|
||||
.scenario-workspace .attention-list p { grid-column: 1 / -1; }
|
||||
.scenario-workspace .scenario-warning-badge { justify-self: start; }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user