Added display flex to html style assets
Some last minute changes to make the html category style match better with the other types
This commit is contained in:
parent
43ed993bf9
commit
78e3740c2a
|
@ -113,7 +113,7 @@ const VideoArtContent = ({
|
|||
|
||||
const content =
|
||||
likelyVideo &&
|
||||
likelyVideo.startsWith('https://watch.videodelivery.net/') ? (
|
||||
likelyVideo.startsWith('https://watch.videodelivery.net/') ? (
|
||||
<div className={`${className} square`}>
|
||||
<Stream
|
||||
streamRef={(e: any) => playerRef(e)}
|
||||
|
@ -188,7 +188,13 @@ const HTMLContent = ({
|
|||
/>
|
||||
);
|
||||
}
|
||||
return <iframe allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" sandbox="allow-scripts" frameBorder="0" src={htmlURL} className={className} style={style}></iframe>;
|
||||
return (
|
||||
<iframe allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
|
||||
sandbox="allow-scripts"
|
||||
frameBorder="0"
|
||||
src={htmlURL}
|
||||
className={className}
|
||||
style={style}></iframe>);
|
||||
};
|
||||
|
||||
|
||||
|
@ -256,19 +262,6 @@ export const ArtContent = ({
|
|||
);
|
||||
}
|
||||
|
||||
if (category === 'html' || animationUrlExt === 'html'
|
||||
) {
|
||||
return (
|
||||
<HTMLContent
|
||||
uri={uri}
|
||||
animationUrl={animationURL}
|
||||
className={className}
|
||||
style={style}
|
||||
files={files}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
const content =
|
||||
category === 'video' ? (
|
||||
<VideoArtContent
|
||||
|
@ -279,6 +272,14 @@ export const ArtContent = ({
|
|||
animationURL={animationURL}
|
||||
active={active}
|
||||
/>
|
||||
) : (category === 'html' || animationUrlExt === 'html') ? (
|
||||
<HTMLContent
|
||||
uri={uri}
|
||||
animationUrl={animationURL}
|
||||
className={className}
|
||||
style={style}
|
||||
files={files}
|
||||
/>
|
||||
) : (
|
||||
<CachedImageContent
|
||||
uri={uri}
|
||||
|
|
Loading…
Reference in New Issue