fix: remove image item

This commit is contained in:
StyleZhang 2024-10-15 10:53:27 +08:00
parent 8fe5028f74
commit 81e57bcc73
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ const FileImageItem = ({
{ {
showDeleteAction && ( showDeleteAction && (
<Button <Button
className='hidden group-hover/file-image:flex absolute -right-1.5 -top-1.5 p-0 w-5 h-5 rounded-full z-10' className='hidden group-hover/file-image:flex absolute -right-1.5 -top-1.5 p-0 w-5 h-5 rounded-full z-[11]'
onClick={() => onRemove?.(id)} onClick={() => onRemove?.(id)}
> >
<RiCloseLine className='w-4 h-4 text-components-button-secondary-text' /> <RiCloseLine className='w-4 h-4 text-components-button-secondary-text' />

View File

@ -47,7 +47,7 @@ const FileItem = ({
{ {
showDeleteAction && ( showDeleteAction && (
<Button <Button
className='hidden group-hover/file-item:flex absolute -right-1.5 -top-1.5 p-0 w-5 h-5 rounded-full z-10' className='hidden group-hover/file-item:flex absolute -right-1.5 -top-1.5 p-0 w-5 h-5 rounded-full z-[11]'
onClick={() => onRemove?.(id)} onClick={() => onRemove?.(id)}
> >
<RiCloseLine className='w-4 h-4 text-components-button-secondary-text' /> <RiCloseLine className='w-4 h-4 text-components-button-secondary-text' />