fix: audio elements were displaced in catalog

This commit is contained in:
Tom (plebeius.eth)
2024-06-08 17:25:20 +02:00
parent 5f792f40f0
commit 9090c18652
+1 -1
View File
@@ -73,7 +73,7 @@ export const CatalogPostMedia = ({ commentMediaInfo, isOutOfFeed, linkWidth, lin
return (
<div className={hasError ? '' : styles.mediaWrapper} style={thumbnailDimensions}>
{!isLoaded && !hasError && type !== 'video' && <span className={styles.loadingSkeleton} />}
{!isLoaded && !hasError && type !== 'video' && type !== 'audio' && <span className={styles.loadingSkeleton} />}
{hasError ? <img className={styles.fileDeleted} src='/assets/filedeleted-res.gif' alt='File deleted' /> : thumbnailComponent}
</div>
);