decreased image preview size

This commit is contained in:
Ren Amamiya 2023-04-17 14:50:38 +07:00
parent 7b91196415
commit de82efff93

View File

@ -3,11 +3,7 @@ import { memo } from 'react';
export const ImagePreview = memo(function ImagePreview({ url, size }: { url: string; size: string }) {
return (
<div
className={`relative h-full ${
size === 'large' ? 'w-full' : 'w-2/3'
} mt-2 rounded-lg border border-zinc-800 xl:w-2/3`}
>
<div className={`relative h-full ${size === 'large' ? 'w-4/5' : 'w-1/2'} mt-2 rounded-lg border border-zinc-800`}>
<Image
src={url}
alt={url}