0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Fixed delete button bug on image upload comp.

refs. https://github.com/TryGhost/Team/issues/3318
This commit is contained in:
Peter Zimon 2023-06-02 07:31:08 +02:00
parent d9b3eb7817
commit 499ba64e00

View file

@ -28,7 +28,7 @@ const ImageUpload: React.FC<ImageUploadProps> = ({
height: height,
backgroundImage: `url(${imageURL})`
}}>
<button className='absolute right-4 top-4 hidden h-8 w-8 cursor-pointer items-center justify-center rounded bg-[rgba(0,0,0,0.75)] text-white hover:bg-black group-hover:flex' type='button' onClick={onDelete}>
<button className='invisible absolute right-4 top-4 flex h-8 w-8 cursor-pointer items-center justify-center rounded bg-[rgba(0,0,0,0.75)] text-white hover:bg-black group-hover:!visible' type='button' onClick={onDelete}>
<Icon color='white' name='trash' size='sm' />
</button>
</div>