Skip to content

Commit b4797ca

Browse files
committed
style(website): cap the editor and footage width
1 parent 43b8784 commit b4797ca

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎website/src/components/Recreation/styles.module.css‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,11 @@
255255
--trims-shown: 1;
256256

257257
/* ── the grid, once ── */
258-
--c2x: calc(4.5vw + var(--pnl-w) + 26px);
259-
--c2w: calc(96vw - var(--c2x));
258+
/* Centre the inspector and footage as one bounded group on wide screens. */
259+
--editor-w: min(91vw, 1280px);
260+
--editor-l: calc((100vw - var(--editor-w)) / 2);
261+
--c2x: calc(var(--editor-l) + var(--pnl-w) + 26px);
262+
--c2w: calc(var(--editor-w) - var(--pnl-w) - 26px);
260263

261264
/* ── ONE BOX, BOTH LAYOUTS ──
262265
The floor is the only thing that separates the two-part layout from the
@@ -388,7 +391,7 @@
388391
overlap while fading, so their combined transition height never sizes it. */
389392
.column {
390393
position: absolute;
391-
left: 4.5vw;
394+
left: var(--editor-l);
392395
width: var(--pnl-w);
393396
height: var(--column-h, var(--box-h));
394397
top: calc(var(--v-t) + var(--v-h) / 2);

0 commit comments

Comments
 (0)