mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-06 23:27:36 +03:00
Remove redundant object-contain from video elements
Commit f481d6d (PR #81) added object-contain to <video> elements in
PreviewPlayer.tsx and HlsVideoPlayer.tsx, but browsers already default
to contain behavior for <video>. Remove the redundant class.
https://claude.ai/code/session_01Ra1xpVwumBhyd6gqUgfGUa
This commit is contained in:
parent
27329b4991
commit
a183efbffc
@ -390,7 +390,7 @@ export default function HlsVideoPlayer({
|
|||||||
)}
|
)}
|
||||||
<video
|
<video
|
||||||
ref={videoRef}
|
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"
|
preload="auto"
|
||||||
autoPlay
|
autoPlay
|
||||||
controls={!frigateControls}
|
controls={!frigateControls}
|
||||||
|
|||||||
@ -303,7 +303,7 @@ function PreviewVideoPlayer({
|
|||||||
{isVisible && (
|
{isVisible && (
|
||||||
<video
|
<video
|
||||||
ref={previewRef}
|
ref={previewRef}
|
||||||
className={`absolute size-full object-contain ${currentHourFrame ? "invisible" : "visible"}`}
|
className={`absolute size-full ${currentHourFrame ? "invisible" : "visible"}`}
|
||||||
preload="auto"
|
preload="auto"
|
||||||
autoPlay
|
autoPlay
|
||||||
playsInline
|
playsInline
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user