mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-26 01:58:21 +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">
|
<div className="relative aspect-video size-full bg-black">
|
||||||
<video
|
<video
|
||||||
ref={playerRef}
|
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
|
autoPlay
|
||||||
playsInline
|
playsInline
|
||||||
preload="auto"
|
preload="auto"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user