mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 01:05:20 +03:00
centered image if no clips avail
This commit is contained in:
parent
aa776d94f1
commit
e96b8facff
@ -82,12 +82,11 @@ export default function Event({ eventId, close }) {
|
|||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{data.has_clip ? (
|
|
||||||
<Fragment>
|
|
||||||
<div className="outer-max-width m-auto">
|
<div className="outer-max-width m-auto">
|
||||||
<div className="aspect-ratio-box w-full relative">
|
<div className="aspect-ratio-box w-full relative">
|
||||||
<div className="absolute w-full top-10 left-0">
|
<div className="absolute w-full top-10 left-0">
|
||||||
|
{data.has_clip ? (
|
||||||
|
<Fragment>
|
||||||
<VideoPlayer
|
<VideoPlayer
|
||||||
options={{
|
options={{
|
||||||
sources: [
|
sources: [
|
||||||
@ -103,9 +102,6 @@ export default function Event({ eventId, close }) {
|
|||||||
seekOptions={{ forward: 10, back: 5 }}
|
seekOptions={{ forward: 10, back: 5 }}
|
||||||
onReady={(player) => {}}
|
onReady={(player) => {}}
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</Fragment>
|
</Fragment>
|
||||||
) : (
|
) : (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
@ -121,5 +117,8 @@ export default function Event({ eventId, close }) {
|
|||||||
</Fragment>
|
</Fragment>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user