Merge pull request #86 from ibs0d/claude/remove-object-contain-7JCSW

Remove redundant object-contain from video elements
This commit is contained in:
ibs0d 2026-03-21 14:03:28 +11:00 committed by GitHub
commit c01fd3f38c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -390,7 +390,7 @@ export default function HlsVideoPlayer({
)}
<video
ref={videoRef}
className={`size-full object-contain rounded-lg bg-black md:rounded-2xl ${loadedMetadata ? "" : "invisible"} cursor-pointer`}
className={`size-full rounded-lg bg-black md:rounded-2xl ${loadedMetadata ? "" : "invisible"} cursor-pointer`}
preload="auto"
autoPlay
controls={!frigateControls}

View File

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