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:
Claude 2026-03-13 11:20:52 +00:00
parent 682d816f19
commit b400bd4b96
No known key found for this signature in database

View File

@ -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: