add better loading states to media
Some checks failed
Some checks failed
This commit is contained in:
@ -77,6 +77,7 @@ const MediaItem: React.FC<IMediaItem> = ({ attachment, onOpenMedia, isLast }) =>
|
||||
alt={attachment.description}
|
||||
style={{ objectPosition: `${x}% ${y}%` }}
|
||||
className={clsx('size-full overflow-hidden', { 'rounded-br-md': isLast })}
|
||||
blurhash={attachment.blurhash}
|
||||
/>
|
||||
);
|
||||
} else if (['gifv', 'video'].indexOf(attachment.type) !== -1) {
|
||||
|
||||
Reference in New Issue
Block a user