add better loading states to media
Some checks failed
pl-api CI / Test for pl-api formatting (22.x) (push) Has been cancelled
pl-fe CI / Test and upload artifacts (22.x) (push) Has been cancelled
pl-hooks CI / Test for a successful build (22.x) (push) Has been cancelled
pl-fe CI / deploy (push) Has been cancelled

This commit is contained in:
2026-02-14 20:15:46 +00:00
parent 755965ab5f
commit 1926a1d6bb
5 changed files with 44 additions and 7 deletions

View File

@ -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) {