Unverified Commit c6ab7eeb authored by Joel's avatar Joel Committed by GitHub

fix: delete operation style error (#485)

parent db4e6d81
...@@ -43,8 +43,8 @@ const ItemOperation: FC<IItemOperationProps> = ({ ...@@ -43,8 +43,8 @@ const ItemOperation: FC<IItemOperationProps> = ({
</div> </div>
{isShowDelete && ( {isShowDelete && (
<div className={cn(s.actionItem, s.deleteActionItem, 'hover:bg-gray-50 group')} onClick={onDelete} > <div className={cn(s.actionItem, s.deleteActionItem, 'hover:bg-gray-50 group')} onClick={onDelete} >
<TrashIcon className={'shrink-0 w-4 h-4 stroke-current text-gray-500 stroke-2 group-hover:text-red-500'} /> <TrashIcon className={cn(s.deleteActionItemChild, 'shrink-0 w-4 h-4 stroke-current text-gray-500 stroke-2')} />
<span className={cn(s.actionName, 'group-hover:text-red-500')}>{t('explore.sidebar.action.delete')}</span> <span className={cn(s.actionName, s.deleteActionItemChild)}>{t('explore.sidebar.action.delete')}</span>
</div> </div>
)} )}
......
...@@ -28,4 +28,8 @@ body .btn { ...@@ -28,4 +28,8 @@ body .btn {
body .btn:hover { body .btn:hover {
/* background-image: ; */ /* background-image: ; */
background-color: #F2F4F7; background-color: #F2F4F7;
}
.deleteActionItem:hover .deleteActionItemChild {
@apply text-red-500;
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment