From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
app/components/base/chat/chat/citation/index.tsx | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/app/components/base/chat/chat/citation/index.tsx b/app/components/base/chat/chat/citation/index.tsx
index 9552492..2ca7b80 100644
--- a/app/components/base/chat/chat/citation/index.tsx
+++ b/app/components/base/chat/chat/citation/index.tsx
@@ -76,18 +76,18 @@
const resourcesLength = resources.length
return (
- <div className='-mb-1 mt-3'>
- <div className='system-xs-medium mb-2 flex items-center text-text-tertiary'>
+ <div className='mt-3 -mb-1'>
+ <div className='flex items-center mb-2 text-xs font-medium text-gray-500'>
{t('common.chat.citation.title')}
- <div className='ml-2 h-[1px] grow bg-divider-regular' />
+ <div className='grow ml-2 h-[1px] bg-black/5' />
</div>
<div className='relative flex flex-wrap'>
{
resources.map((res, index) => (
<div
key={index}
- className='absolute left-0 top-0 -z-10 mb-1 mr-1 h-7 w-auto max-w-[240px] whitespace-nowrap pl-7 pr-2 text-xs opacity-0'
- ref={(ele: any) => (elesRef.current[index] = ele!)}
+ className='absolute top-0 left-0 w-auto mr-1 mb-1 pl-7 pr-2 max-w-[240px] h-7 text-xs whitespace-nowrap opacity-0 -z-10'
+ ref={ele => (elesRef.current[index] = ele!)}
>
{res.documentName}
</div>
@@ -95,7 +95,7 @@
}
{
resources.slice(0, showMore ? resourcesLength : limitNumberInOneLine).map((res, index) => (
- <div key={index} className='mb-1 mr-1 cursor-pointer'>
+ <div key={index} className='mr-1 mb-1 cursor-pointer'>
<Popup
data={res}
showHitInfo={showHitInfo}
@@ -106,13 +106,13 @@
{
limitNumberInOneLine < resourcesLength && (
<div
- className='system-xs-medium flex h-7 cursor-pointer items-center rounded-lg bg-components-panel-bg px-2 text-text-tertiary'
+ className='flex items-center px-2 h-7 bg-white rounded-lg text-xs font-medium text-gray-500 cursor-pointer'
onClick={() => setShowMore(v => !v)}
>
{
!showMore
? `+ ${resourcesLength - limitNumberInOneLine}`
- : <RiArrowDownSLine className='h-4 w-4 rotate-180 text-text-tertiary' />
+ : <RiArrowDownSLine className='w-4 h-4 text-gray-600 rotate-180' />
}
</div>
)
--
Gitblit v1.8.0