Keep scenario validation notes readable at narrower widths

This commit is contained in:
Nick Beckley 2026-11-20 20:18:05 +00:00
parent 0dddaf5dd8
commit 00f5b96544
2 changed files with 3 additions and 0 deletions

View File

@ -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});
}

View File

@ -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; }