From 5ba85d4f916fef2048228cd38666e4b6ab33cc9c Mon Sep 17 00:00:00 2001 From: Adam Eivy Date: Mon, 25 May 2026 15:25:49 -0700 Subject: [PATCH] fix: load videos in Media Gen preview on mobile (muted autoplay + poster) --- .changelog/NEXT.md | 1 + client/src/components/media/MediaLightbox.jsx | 26 ++++++++-- .../components/media/MediaLightbox.test.jsx | 48 +++++++++++++++++++ client/src/pages/VideoGen.jsx | 16 ++++++- 4 files changed, 86 insertions(+), 5 deletions(-) create mode 100644 client/src/components/media/MediaLightbox.test.jsx diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md index ae4ec9a8c..51306ca0b 100644 --- a/.changelog/NEXT.md +++ b/.changelog/NEXT.md @@ -17,3 +17,4 @@ TBD ## Fixed - **Chief of Staff pane overflow** — content panel collapses to a single `flex-1 min-h-0 min-w-0 overflow-y-auto overflow-x-hidden` div so tall tab content scrolls inside the panel instead of expanding it. Event log rows in both `EventLog` and `TerminalCoSPanel` get `break-all` so long unbreakable tokens (URLs, hashes, paths) wrap inside the 320px sidebar instead of pushing the column wider visually. +- **Videos now load in the Media Gen preview on mobile.** Both the preview-modal (lightbox) `