Merge pull request #46 from ibs0d/claude/fix-video-stretch-history-ansQF

Claude/fix video stretch history ans qf
This commit is contained in:
ibs0d 2026-03-13 22:45:02 +11:00 committed by GitHub
commit 72e22fa458
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -849,7 +849,7 @@ function MSEPlayer({
className={className} className={className}
style={{ style={{
objectFit: objectFit:
"var(--frigate-mse-object-fit, fill)" as CSSProperties["objectFit"], "var(--frigate-mse-object-fit, contain)" as CSSProperties["objectFit"],
transform: transform:
"var(--frigate-mse-grid-rotation, none)" as CSSProperties["transform"], "var(--frigate-mse-grid-rotation, none)" as CSSProperties["transform"],
transformOrigin: transformOrigin:

View File

@ -303,7 +303,7 @@ function PreviewVideoPlayer({
{isVisible && ( {isVisible && (
<video <video
ref={previewRef} ref={previewRef}
className={`absolute size-full ${currentHourFrame ? "invisible" : "visible"}`} className={`absolute size-full object-contain ${currentHourFrame ? "invisible" : "visible"}`}
preload="auto" preload="auto"
autoPlay autoPlay
playsInline playsInline

View File

@ -846,7 +846,7 @@ export default function DraggableGridLayout({
useWebGL={useWebGL} useWebGL={useWebGL}
cameraRef={cameraRef} cameraRef={cameraRef}
className={cn( className={cn(
"draggable-live-grid-mse-cover size-full rounded-lg bg-black md:rounded-2xl", "draggable-live-grid-mse-cover size-full rounded-lg bg-black [--frigate-mse-object-fit:fill] md:rounded-2xl",
camera.ui?.rotate && camera.ui?.rotate &&
"draggable-live-grid-rotated [--frigate-mse-grid-rotated:1] [--frigate-mse-grid-rotation:rotate(90deg)]", "draggable-live-grid-rotated [--frigate-mse-grid-rotated:1] [--frigate-mse-grid-rotation:rotate(90deg)]",
isEditMode && isEditMode &&