diff --git a/client/src/components/AssetCard.jsx b/client/src/components/AssetCard.jsx index 2e0c28f..53da740 100644 --- a/client/src/components/AssetCard.jsx +++ b/client/src/components/AssetCard.jsx @@ -18,6 +18,8 @@ const formatFileSize = (bytes) => { export default function AssetCard({ asset, onClick }) { const TypeIcon = typeIcons[asset.type] || File const isImage = asset.type === 'image' + const isVideo = asset.type === 'video' + const hasPreview = (isImage || isVideo) && asset.url return (
+ ) : isVideo && asset.url ? ( +