From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +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