Update SingleAssetPreview for .html files
This commit is contained in:
@@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user