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:
stegaBOB 2021-09-15 20:31:58 -04:00 committed by GitHub
parent 43ed993bf9
commit 78e3740c2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 15 deletions

View File

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