Update SingleAssetPreview for .html files

This commit is contained in:
Serkan Reis
2023-01-24 14:04:29 +03:00
parent 70ce08a98a
commit 2ad2cd11ec
2 changed files with 17 additions and 4 deletions
+1 -3
View File
@@ -67,9 +67,7 @@ export const MetadataFormGroup = (props: MetadataFormGroupProps) => {
<img alt="preview" src={URL.createObjectURL(relatedAsset)} />
)}
{getAssetType(relatedAsset.name) === 'html' && (
<div>
<iframe allowFullScreen height="420px" srcDoc={htmlContents} title="Preview" width="100%" />
</div>
<iframe allowFullScreen height="420px" srcDoc={htmlContents} title="Preview" width="100%" />
)}
</div>
)}