commit f9e5ef98e395de94257fbcb1440428d1f1875cb1
parent 40885bad97dcc43160caa39d2e20f36040177250
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Thu, 19 Nov 2026 19:12:02 -0500
export: the player leaves room for the transcript on a short window
From sm up the player was min(92vw, 960px) wide whatever the height, so
at 1280x720 its 540px left the column under it 92px: no title, no cue
list, only the action strip (which the previous commit keeps from
covering anything, by scrolling a 40px porthole). --player-w is now
clamped so the column gets at least 18rem: 612px wide at 1280x720,
unchanged from 916px tall up, and never under min(92vw, 20rem) (a
landscape phone; the column scrolls there). One variable, so the player
and the modal's reserved slot still agree.
e2e: the column's room is at least 280px at both sizes.
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat:
3 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/export/CHANGELOG.md b/export/CHANGELOG.md
@@ -6,6 +6,10 @@
player scrolls, the strip (Clip in, Clip out, Share, …) stays pinned to its bottom edge, and the cue list keeps a
few lines. Before, at 1280×720, **Save clip** sat under the strip and could not be clicked. The clip panel is
scrolled into view when it opens and when its state changes.
+- **The video player leaves room for the transcript on a laptop-height window.** From 640 px wide the player is
+ never so tall that the column under it gets less than 18rem: at 1280×720 the video is 612 px wide instead of 960,
+ and the title, the cue list and the action strip all show under it (the column had 92 px). Windows 916 px tall
+ or more are unchanged.
- **Clip my copy: cut a clip from your own file, in the browser.**
- With your own copy playing, **Clip my copy** (in the "Your copy" bar) cuts the clip between the **Clip in** and
**Clip out** marks from that file. The marks are on the transcript's clock; your offset is applied.
diff --git a/export/app/globals.css b/export/app/globals.css
@@ -20,14 +20,22 @@ body {
wide the video is and where its top edge sits — they used to carry two copies
of `min(92vw,960px)` and `top-16`, which is exactly the kind of pair that
drifts. Below sm the player is full-bleed and tucked under the notch; from sm
- it is the centred card it has always been. */
+ it is the centred card it has always been — but never so tall that the
+ modal's column under it (title, "Your copy", cue list, action strip) gets
+ less than 18rem: on a laptop-height window (1280×720) a 960px-wide video
+ left that column 92px. The floor keeps a landscape phone's player usable;
+ the column scrolls there. */
:root {
--player-w: 100vw;
--player-top: env(safe-area-inset-top, 0px);
}
@media (min-width: 640px) {
:root {
- --player-w: min(92vw, 960px);
+ --player-w: clamp(
+ min(92vw, 20rem),
+ (100dvh - 4rem - 1.5rem - 18rem) * 16 / 9,
+ min(92vw, 960px)
+ );
--player-top: 4rem; /* was `top-16` */
}
}
diff --git a/export/e2e/local-clip.spec.ts b/export/e2e/local-clip.spec.ts
@@ -683,6 +683,8 @@ for (const size of SIZES) {
// it is not part of the page.
await page.addStyleTag({ content: "nextjs-portal { display: none !important; }" });
await expectModalOpen(page);
+ // The player leaves the column under it room for more than the strip.
+ expect(await page.getByTestId("modal-column").evaluate((el) => parseFloat(getComputedStyle(el).maxHeight))).toBeGreaterThanOrEqual(280);
// Before the pick: the control, and (no player) the panel's last line.
if (layout.gone) {