Fix PreviewPlayer layout: replace size-full with w-full to allow aspect-ratio CSS to work

When scrubbing in RecordingView, tall cameras passed size-full (width:100% + height:100%)
to PreviewPlayer, causing the browser to ignore aspect-ratio. Replacing size-full with
w-full lets height be computed from width + aspect-ratio, preserving correct proportions.

https://claude.ai/code/session_019sUH2h6HoVswdtD7EbhAJa
This commit is contained in:
Claude 2026-03-21 02:00:50 +00:00
parent 08b1c43c16
commit 93138cbfb3
No known key found for this signature in database

View File

@ -326,7 +326,7 @@ export default function DynamicVideoPlayer({
)} )}
<PreviewPlayer <PreviewPlayer
className={cn( className={cn(
className, className?.replace(/\bsize-full\b/g, "w-full"),
isScrubbing || isLoading ? "visible" : "hidden", isScrubbing || isLoading ? "visible" : "hidden",
)} )}
camera={camera} camera={camera}