fix(web): correct icon of tag (#37326)

This commit is contained in:
KVOJJJin 2026-06-11 15:01:46 +08:00 committed by GitHub
parent e26214c02d
commit 632df88228
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 6 deletions

View File

@ -10,7 +10,6 @@ import {
import { useQuery } from '@tanstack/react-query'
import { useMemo, useState } from 'react'
import { useTranslation } from 'react-i18next'
import Tag01Icon from '@/app/components/base/icons/src/vender/line/financeAndECommerce/Tag01'
import { consoleQuery } from '@/service/client'
type SnippetTagsFilterProps = {
@ -74,7 +73,7 @@ const SnippetTagsFilter = ({
value.length > 0 && 'text-text-secondary',
)}
>
<Tag01Icon className="size-4" aria-hidden="true" />
<span className="i-custom-vender-line-financeAndECommerce-tag-01 size-4 text-text-tertiary" aria-hidden="true" />
{value.length > 0 && (
<span className="ml-1 system-xs-medium text-text-secondary">
{value.length}

View File

@ -5,7 +5,6 @@ import { Combobox, ComboboxContent, ComboboxTrigger } from '@langgenius/dify-ui/
import { useQuery } from '@tanstack/react-query'
import { useCallback, useMemo, useState } from 'react'
import { useTranslation } from 'react-i18next'
import Tag01Icon from '@/app/components/base/icons/src/vender/line/financeAndECommerce/Tag01'
import XCircleIcon from '@/app/components/base/icons/src/vender/solid/general/XCircle'
import { consoleQuery } from '@/service/client'
import { TagSearchContent } from './tag-search-content'
@ -80,7 +79,7 @@ export const TagFilter = ({
>
<span className="flex w-full min-w-0 items-center gap-1">
<span className="p-px">
<Tag01Icon className="size-3.5 text-text-tertiary" aria-hidden="true" />
<span className="i-custom-vender-line-financeAndECommerce-tag-01 size-3.5 text-text-tertiary" aria-hidden="true" />
</span>
<span className="min-w-0 grow truncate text-[13px] leading-4.5 text-text-tertiary">
{!value.length && t('tag.placeholder', { ns: 'common' })}

View File

@ -80,7 +80,7 @@ export const TagSearchContent = ({
</ComboboxList>
<ComboboxEmpty className="p-1">
<div className="flex flex-col items-center gap-y-1 p-3">
<span aria-hidden="true" className="i-ri-price-tag-3-line size-6 text-text-quaternary" />
<span className="i-custom-vender-line-financeAndECommerce-tag-01 size-6 text-text-quaternary" aria-hidden="true" />
<div className="system-xs-regular text-text-tertiary">{t('tag.noTag', { ns: 'common' })}</div>
</div>
</ComboboxEmpty>
@ -94,7 +94,7 @@ export const TagSearchContent = ({
onClose?.()
}}
>
<span aria-hidden="true" className="i-ri-price-tag-3-line size-4 text-text-tertiary" />
<span className="i-custom-vender-line-financeAndECommerce-tag-01 size-4 text-text-tertiary" aria-hidden="true" />
<span className="min-w-0 grow truncate px-1 system-md-regular text-text-secondary">
{t('tag.manageTags', { ns: 'common' })}
</span>