mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-18 06:08:22 +03:00
Fix review page preview video stretch by adding object-contain
VideoPreview's <video> had aspect-video + size-full, but size-full overrides the aspect-ratio constraint, leaving object-fit at the default fill. Adding object-contain preserves the video's natural aspect ratio in event cards. https://claude.ai/code/session_01EwdaKGsrRLZ74smmCQ1MgW
This commit is contained in:
parent
abcb31e30c
commit
6cb31d1f96
@ -231,7 +231,7 @@ export function VideoPreview({
|
||||
<div className="relative aspect-video size-full bg-black">
|
||||
<video
|
||||
ref={playerRef}
|
||||
className="pointer-events-none aspect-video size-full bg-black"
|
||||
className="pointer-events-none aspect-video size-full bg-black object-contain"
|
||||
autoPlay
|
||||
playsInline
|
||||
preload="auto"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user