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/datasets/chunk.tsx | 30 ++++++++++++++----------------
1 files changed, 14 insertions(+), 16 deletions(-)
diff --git a/app/components/datasets/chunk.tsx b/app/components/datasets/chunk.tsx
index eb36c20..bf2835d 100644
--- a/app/components/datasets/chunk.tsx
+++ b/app/components/datasets/chunk.tsx
@@ -9,19 +9,17 @@
export const ChunkLabel: FC<ChunkLabelProps> = (props) => {
const { label, characterCount } = props
- return <div className='flex items-center text-xs font-medium text-text-tertiary'>
+ return <div className='flex items-center text-text-tertiary text-xs font-medium'>
<SelectionMod className='size-[10px]' />
- <p className='ml-0.5 flex gap-2'>
- <span>
- {label}
- </span>
- <span>
+ <p className='flex gap-2 ml-0.5'><span>
+ {label}
+ </span>
+ <span>
路
- </span>
- <span>
- {`${characterCount} characters`}
- </span>
- </p>
+ </span>
+ <span>
+ {`${characterCount} characters`}
+ </span></p>
</div>
}
@@ -31,7 +29,7 @@
const { label, characterCount, children } = props
return <div className='space-y-2'>
<ChunkLabel label={label} characterCount={characterCount} />
- <div className='body-md-regular text-text-secondary'>
+ <div className='text-text-secondary body-md-regular'>
{children}
</div>
</div>
@@ -45,12 +43,12 @@
const { qa } = props
return <div className='flex flex-col gap-y-2'>
<div className='flex gap-x-1'>
- <label className='shrink-0 text-[13px] font-medium leading-[20px] text-text-tertiary'>Q</label>
- <p className='body-md-regular text-text-secondary'>{qa.question}</p>
+ <label className='text-text-tertiary text-[13px] font-medium leading-[20px] shrink-0'>Q</label>
+ <p className='text-text-secondary body-md-regular'>{qa.question}</p>
</div>
<div className='flex gap-x-1'>
- <label className='shrink-0 text-[13px] font-medium leading-[20px] text-text-tertiary'>A</label>
- <p className='body-md-regular text-text-secondary'>{qa.answer}</p>
+ <label className='text-text-tertiary text-[13px] font-medium leading-[20px] shrink-0'>A</label>
+ <p className='text-text-secondary body-md-regular'>{qa.answer}</p>
</div>
</div>
}
--
Gitblit v1.8.0