diff --git a/src/components/Emoji/index.tsx b/src/components/Emoji/index.tsx index 00501c4..36be7cd 100644 --- a/src/components/Emoji/index.tsx +++ b/src/components/Emoji/index.tsx @@ -33,7 +33,8 @@ export default function Emoji({ {emoji.shortcode} { setHasError(false) }} diff --git a/src/components/Image/index.tsx b/src/components/Image/index.tsx index c7f65ae..2ea371e 100644 --- a/src/components/Image/index.tsx +++ b/src/components/Image/index.tsx @@ -129,10 +129,12 @@ export default function Image({ alt={finalAlt} decoding="async" loading="lazy" + draggable={false} onLoad={handleLoad} onError={handleError} className={cn( - 'object-cover rounded-lg w-full h-full transition-opacity duration-500', + 'object-cover rounded-lg w-full h-full transition-opacity duration-500 pointer-events-none', + isLoading ? 'opacity-0' : 'opacity-100', className )} width={dim?.width}