enh: channels video file upload behaviour

This commit is contained in:
Timothy Jaeryang Baek 2025-12-03 19:15:30 -05:00
parent 22f1b764a7
commit 7b126b23d5

View file

@ -347,6 +347,12 @@
alt={file.name}
imageClassName=" max-h-96 rounded-lg"
/>
{:else if file.type === 'video' || (file?.content_type ?? '').startsWith('video/')}
<video
src={`${file.url}${file?.content_type ? '/content' : ''}`}
controls
class=" max-h-96 rounded-lg"
></video>
{:else}
<FileItem
item={file}