Переглянути джерело

fix: delete operation style error (#485)

tags/0.3.7
Joel 2 роки тому
джерело
коміт
c6ab7eebd9
Аккаунт користувача з таким Email не знайдено

+ 2
- 2
web/app/components/explore/item-operation/index.tsx Переглянути файл

@@ -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>
)}


+ 4
- 0
web/app/components/explore/item-operation/style.module.css Переглянути файл

@@ -28,4 +28,8 @@ body .btn {
body .btn:hover {
/* background-image: ; */
background-color: #F2F4F7;
}

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

Завантаження…
Відмінити
Зберегти