Skip to content

Commit

Permalink
fix: preview image and video size
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Sep 8, 2024
1 parent 31dfbd8 commit e4e4700
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer/src/components/ui/media/preview-media.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
Expand Down Expand Up @@ -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()}
/>
) : (
Expand Down

0 comments on commit e4e4700

Please sign in to comment.