fix: center Scene 8 at wide viewports

This commit is contained in:
lda
2026-07-12 08:43:30 +07:00 Verified
parent 74d02f533b
commit 53e02ee264
2 changed files with 7 additions and 0 deletions
@@ -55,6 +55,9 @@ describe("presentation.css", () => {
it("bounds Scene 9 conversation scrolling and recenters Scene 8 at compact stage widths", () => {
expect(css.match(/\.presentation-stage\[data-scene-view="agent"\] \.presentation-stage__primary\s*\{/g)).toHaveLength(2);
expect(css).toMatch(
/\.presentation-stage__primary > \.agent-handoff-scene\s*\{[\s\S]*?margin-inline:\s*auto;/,
);
expect(css).toMatch(/\.agent-handoff-scene__intro\s*\{[\s\S]*?width:\s*min\(calc\(100% - 3rem\), 72rem\);/);
expect(css).toMatch(/\.agent-handoff-scene__composer\s*\{[\s\S]*?width:\s*min\(calc\(100% - 3rem\), 72rem\);/);
expect(css).toMatch(
@@ -57,6 +57,10 @@
padding: 0;
}
.presentation-stage__primary > .agent-handoff-scene {
margin-inline: auto;
}
.presentation-stage {
--presentation-footer-height: 2.5rem;
position: relative;