centered image if no clips avail

This commit is contained in:
Bernt Christian Egeland 2021-08-22 18:15:06 +02:00
parent aa776d94f1
commit e96b8facff

View File

@ -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>
); );
} }