diff --git a/PlotLine.Tests/Browser/scenario-themes.cjs b/PlotLine.Tests/Browser/scenario-themes.cjs index a9e97305..407212ac 100644 --- a/PlotLine.Tests/Browser/scenario-themes.cjs +++ b/PlotLine.Tests/Browser/scenario-themes.cjs @@ -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}); } diff --git a/PlotLine/wwwroot/css/application-shell.css b/PlotLine/wwwroot/css/application-shell.css index 1ae96dc5..7f029a12 100644 --- a/PlotLine/wwwroot/css/application-shell.css +++ b/PlotLine/wwwroot/css/application-shell.css @@ -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; }