Skip to content

Commit

Permalink
fix: delete operation style error (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamjoel authored Jun 29, 2023
1 parent db4e6d8 commit c6ab7ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/app/components/explore/item-operation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ const ItemOperation: FC<IItemOperationProps> = ({
</div>
{isShowDelete && (
<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'} />
<span className={cn(s.actionName, 'group-hover:text-red-500')}>{t('explore.sidebar.action.delete')}</span>
<TrashIcon className={cn(s.deleteActionItemChild, 'shrink-0 w-4 h-4 stroke-current text-gray-500 stroke-2')} />
<span className={cn(s.actionName, s.deleteActionItemChild)}>{t('explore.sidebar.action.delete')}</span>
</div>
)}

Expand Down
4 changes: 4 additions & 0 deletions web/app/components/explore/item-operation/style.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,8 @@ body .btn {
body .btn:hover {
/* background-image: ; */
background-color: #F2F4F7;
}

.deleteActionItem:hover .deleteActionItemChild {
@apply text-red-500;
}

0 comments on commit c6ab7ee

Please sign in to comment.