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
|
@ -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 =
|
const content =
|
||||||
category === 'video' ? (
|
category === 'video' ? (
|
||||||
<VideoArtContent
|
<VideoArtContent
|
||||||
|
@ -279,6 +272,14 @@ export const ArtContent = ({
|
||||||
animationURL={animationURL}
|
animationURL={animationURL}
|
||||||
active={active}
|
active={active}
|
||||||
/>
|
/>
|
||||||
|
) : (category === 'html' || animationUrlExt === 'html') ? (
|
||||||
|
<HTMLContent
|
||||||
|
uri={uri}
|
||||||
|
animationUrl={animationURL}
|
||||||
|
className={className}
|
||||||
|
style={style}
|
||||||
|
files={files}
|
||||||
|
/>
|
||||||
) : (
|
) : (
|
||||||
<CachedImageContent
|
<CachedImageContent
|
||||||
uri={uri}
|
uri={uri}
|
||||||
|
|
Loading…
Reference in New Issue