mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-18 06:08:22 +03:00
Fix History preview video stretch by adding object-contain
PreviewVideoPlayer's <video> had no explicit object-fit, so browsers applied the CSS default (fill), stretching the video when the container aspect ratio (detect resolution) didn't match the actual preview video. Adding object-contain preserves aspect ratio in the recording/history view. https://claude.ai/code/session_01EwdaKGsrRLZ74smmCQ1MgW
This commit is contained in:
parent
93a5f2691c
commit
abcb31e30c
@ -303,7 +303,7 @@ function PreviewVideoPlayer({
|
||||
{isVisible && (
|
||||
<video
|
||||
ref={previewRef}
|
||||
className={`absolute size-full ${currentHourFrame ? "invisible" : "visible"}`}
|
||||
className={`absolute size-full object-contain ${currentHourFrame ? "invisible" : "visible"}`}
|
||||
preload="auto"
|
||||
autoPlay
|
||||
playsInline
|
||||
|
||||
Loading…
Reference in New Issue
Block a user