pl-fe: fix regression in uploaded media preview
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -172,7 +172,11 @@ const Upload: React.FC<IUpload> = ({
|
|||||||
<Blurhash hash={media.blurhash} className='⁂-media-gallery__preview' />
|
<Blurhash hash={media.blurhash} className='⁂-media-gallery__preview' />
|
||||||
<animated.div
|
<animated.div
|
||||||
className={clsx('compose-form__upload-thumbnail relative h-40 w-full overflow-hidden bg-contain bg-center bg-no-repeat', mediaType)}
|
className={clsx('compose-form__upload-thumbnail relative h-40 w-full overflow-hidden bg-contain bg-center bg-no-repeat', mediaType)}
|
||||||
style={styles}
|
style={{
|
||||||
|
scale: styles.scale,
|
||||||
|
backgroundImage: mediaType === 'image' ? `url(${media.preview_url})` : undefined,
|
||||||
|
backgroundPosition: typeof x === 'number' && typeof y === 'number' ? `${x}% ${y}%` : undefined,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<HStack className='absolute right-2 top-2 z-10' space={2}>
|
<HStack className='absolute right-2 top-2 z-10' space={2}>
|
||||||
{onDescriptionChange && (
|
{onDescriptionChange && (
|
||||||
|
|||||||
Reference in New Issue
Block a user