Починка импорта, плеер для аудио

This commit is contained in:
Халимов Рустам
2026-04-06 23:35:45 +03:00
parent d96e4ec7d4
commit 32c9bc43cf
10 changed files with 375 additions and 196 deletions

View File

@@ -102,11 +102,13 @@ export default function ImageLightbox({ url, images, initialIndex = 0, onClose }
onClick={(e) => e.stopPropagation()}
className="absolute inset-x-0 inset-y-12 flex items-center justify-center p-4"
>
{currentType === 'video' ? (
{(currentType === 'video' || currentType === 'gif') ? (
<video
src={currentUrl}
controls
controls={currentType === 'video'}
autoPlay
loop={currentType === 'gif'}
muted={currentType === 'gif'}
playsInline
preload="metadata"
className="w-full h-full object-contain outline-none bg-black/50"