Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix(website): hand the column over without a gap, and let portrait size the picture
Etienne Lescot8a590a624316
diff --git a/website/src/components/Recreation/scene.ts b/website/src/components/Recreation/scene.tsindex 40ec089a5..bfa1a978e 100644--- a/website/src/components/Recreation/scene.ts+++ b/website/src/components/Recreation/scene.ts@@ -546,7 +546,12 @@ export function frameAt(p: number): Frame {const strikeIndex = CUT_INDEX.find((i) => t >= strikeOf(i) - 0.5 && t < strikeOf(i) + 0.35) ?? -1;const panelOn = t >= UI_IN && !(t >= PANEL_OFF[0] && t < PANEL_OFF[1]);- const paletteOn = t >= 14.75 && t < 19.45;+ /* The complement of the panel's window, not a second pair of numbers.+ Written separately they were 14.75 to 19.45 against the panel's 14.45 to+ 19.60, which leaves 0.30s at the start and 0.15s at the end where neither+ is up and the caption stands alone over an empty column. They are+ alternatives: one hands over to the other, and the 0.45s fades overlap. */+ const paletteOn = t >= PANEL_OFF[0] && t < PANEL_OFF[1];return {t,diff --git a/website/src/components/Recreation/styles.module.css b/website/src/components/Recreation/styles.module.cssindex 6853bfbdb..53e31cdf6 100644--- a/website/src/components/Recreation/styles.module.css+++ b/website/src/components/Recreation/styles.module.css@@ -1660,10 +1660,22 @@--gut-h: 18px;--cap-h: 96px;--pnl-w: calc(100vw - 2 * var(--gut-h));-- --v-w: calc(100vw - 2 * var(--gut-h));+ /* What the pane below the picture needs at its smallest: the palette is+ 160 tall and the transcript wants a few lines under its header. */+ --pane-min: 190px;++ /* Full width, but never more height than the box has left once the+ caption, the pane and the floor have taken theirs. Taking the width+ unconditionally is what broke a 574px window: the picture grew to 302+ tall in a box with 512, the pane was left 114 for a palette of 160 —+ so it lay over the picture — and the transcript's mask came out at+ -20px, which is why that panel was empty. */+ --v-w: min(+ calc(100vw - 2 * var(--gut-h)),+ calc((var(--box-h) - var(--cap-h) - var(--pane-min)) * 1.77778)+ );--v-h: calc(var(--v-w) * 0.5625);- --v-l: var(--gut-h);+ --v-l: calc((100vw - var(--v-w)) / 2);--v-t: calc(var(--box-top) + var(--cap-h));}