mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-11 11:56:53 +08:00
Chore: frontend infrastructure upgrade (#16420)
Co-authored-by: NFish <douxc512@gmail.com> Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: jZonG <jzongcode@gmail.com>
This commit is contained in:
@@ -9,9 +9,9 @@ export type ChunkLabelProps = {
|
||||
|
||||
export const ChunkLabel: FC<ChunkLabelProps> = (props) => {
|
||||
const { label, characterCount } = props
|
||||
return <div className='flex items-center text-text-tertiary text-xs font-medium'>
|
||||
return <div className='flex items-center text-xs font-medium text-text-tertiary'>
|
||||
<SelectionMod className='size-[10px]' />
|
||||
<p className='flex gap-2 ml-0.5'>
|
||||
<p className='ml-0.5 flex gap-2'>
|
||||
<span>
|
||||
{label}
|
||||
</span>
|
||||
@@ -31,7 +31,7 @@ export const ChunkContainer: FC<ChunkContainerProps> = (props) => {
|
||||
const { label, characterCount, children } = props
|
||||
return <div className='space-y-2'>
|
||||
<ChunkLabel label={label} characterCount={characterCount} />
|
||||
<div className='text-text-secondary body-md-regular'>
|
||||
<div className='body-md-regular text-text-secondary'>
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
@@ -45,12 +45,12 @@ export const QAPreview: FC<QAPreviewProps> = (props) => {
|
||||
const { qa } = props
|
||||
return <div className='flex flex-col gap-y-2'>
|
||||
<div className='flex gap-x-1'>
|
||||
<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>
|
||||
<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>
|
||||
</div>
|
||||
<div className='flex gap-x-1'>
|
||||
<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>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user