Починка импорта, плеер для аудио
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user