fix: preview image and video size

This commit is contained in:
DIYgod 2024-09-09 00:38:35 +08:00
parent 31dfbd8de5
commit e4e47006ee
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -142,13 +142,13 @@ export const PreviewMediaContent: FC<{
controls
autoPlay
muted
className="max-h-full max-w-full object-contain"
className="size-full object-contain"
onClick={stopPropagation}
/>
) : (
<FallbackableImage
fallbackUrl={media[0].fallbackUrl}
className="h-auto w-fit object-contain"
className="size-full object-contain"
alt="cover"
src={src}
onContextMenu={(e) => handleContextMenu(src, e)}
@ -241,7 +241,7 @@ export const PreviewMediaContent: FC<{
<VideoPlayer
src={med.url}
controls
className="max-h-full max-w-full object-contain"
className="size-full object-contain"
onClick={(e) => e.stopPropagation()}
/>
) : (