mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-18 06:08:22 +03:00
Fix History preview video stretch by restoring contain as default object-fit
The MSE player default was set to 'fill' which stretches video in all contexts. Only the draggable grid should use 'cover' (via --frigate-mse-object-fit:cover). Changing the fallback to 'contain' restores aspect-ratio-preserving behaviour everywhere else (History preview, etc.) while keeping the grid fill intact. https://claude.ai/code/session_01EwdaKGsrRLZ74smmCQ1MgW
This commit is contained in:
parent
682d816f19
commit
b400bd4b96
@ -849,7 +849,7 @@ function MSEPlayer({
|
||||
className={className}
|
||||
style={{
|
||||
objectFit:
|
||||
"var(--frigate-mse-object-fit, fill)" as CSSProperties["objectFit"],
|
||||
"var(--frigate-mse-object-fit, contain)" as CSSProperties["objectFit"],
|
||||
transform:
|
||||
"var(--frigate-mse-grid-rotation, none)" as CSSProperties["transform"],
|
||||
transformOrigin:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user