mirror of
https://github.com/langgenius/dify.git
synced 2026-09-08 11:04:27 +08:00
fix(web): reuse Dify Tag in quality table (WTA-2076)
Linear: https://linear.app/dify/issue/WTA-2076/uiux-%E8%B4%A8%E9%87%8F%E9%A1%B5%E6%A0%87%E7%AD%BE%E5%88%97%E5%A4%8D%E7%94%A8-dify-tag-%E6%8E%A7%E4%BB%B6
This commit is contained in:
parent
25a66fdd20
commit
608d5bbd92
@ -27,6 +27,7 @@ import { useInfiniteQuery, useMutation, useQueryClient } from '@tanstack/react-q
|
||||
import { useRef, useState } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import Loading from '@/app/components/base/loading'
|
||||
import Tag from '@/app/components/base/tag'
|
||||
import { useRouter, useSearchParams } from '@/next/navigation'
|
||||
import { consoleClient, consoleQuery } from '@/service/client'
|
||||
import { newKnowledgeQualityPath, newKnowledgeRetrievalTestPath } from '../routes'
|
||||
@ -536,12 +537,9 @@ export function QualityPage({ knowledgeSpaceId }: { knowledgeSpaceId: string })
|
||||
/>
|
||||
<div className="flex min-w-0 gap-1 overflow-hidden">
|
||||
{visibleTags(item.tags).map((tag) => (
|
||||
<span
|
||||
key={tag}
|
||||
className="h-4 shrink-0 rounded-[5px] border border-divider-deep bg-components-badge-bg-dimm px-1 system-2xs-medium text-text-tertiary"
|
||||
>
|
||||
<Tag key={tag} color="gray" bordered className="max-w-full min-w-0 truncate">
|
||||
{tag}
|
||||
</span>
|
||||
</Tag>
|
||||
))}
|
||||
</div>
|
||||
<Popover>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user