mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-07 07:37:37 +03:00
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:
parent
08b1c43c16
commit
93138cbfb3
@ -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}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user