mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 15:48:58 +08:00
style: chat answer align with new UI (#9658)
This commit is contained in:
parent
8e7a752b2a
commit
01a2513812
@ -16,12 +16,11 @@ const BasicContent: FC<BasicContentProps> = ({
|
|||||||
} = item
|
} = item
|
||||||
|
|
||||||
if (annotation?.logAnnotation)
|
if (annotation?.logAnnotation)
|
||||||
return <Markdown content={annotation?.logAnnotation.content || ''} className='px-2 py-1' />
|
return <Markdown content={annotation?.logAnnotation.content || ''} />
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Markdown
|
<Markdown
|
||||||
className={cn(
|
className={cn(
|
||||||
'px-2 py-1',
|
|
||||||
item.isError && '!text-[#F04438]',
|
item.isError && '!text-[#F04438]',
|
||||||
)}
|
)}
|
||||||
content={content}
|
content={content}
|
||||||
|
@ -14,7 +14,6 @@ import BasicContent from './basic-content'
|
|||||||
import SuggestedQuestions from './suggested-questions'
|
import SuggestedQuestions from './suggested-questions'
|
||||||
import More from './more'
|
import More from './more'
|
||||||
import WorkflowProcess from './workflow-process'
|
import WorkflowProcess from './workflow-process'
|
||||||
import { AnswerTriangle } from '@/app/components/base/icons/src/vender/solid/general'
|
|
||||||
import LoadingAnim from '@/app/components/base/chat/chat/loading-anim'
|
import LoadingAnim from '@/app/components/base/chat/chat/loading-anim'
|
||||||
import Citation from '@/app/components/base/chat/chat/citation'
|
import Citation from '@/app/components/base/chat/chat/citation'
|
||||||
import { EditTitle } from '@/app/components/app/annotation/edit-annotation-modal/edit-item'
|
import { EditTitle } from '@/app/components/app/annotation/edit-annotation-modal/edit-item'
|
||||||
@ -110,10 +109,9 @@ const Answer: FC<AnswerProps> = ({
|
|||||||
</div>
|
</div>
|
||||||
<div className='chat-answer-container group grow w-0 ml-4' ref={containerRef}>
|
<div className='chat-answer-container group grow w-0 ml-4' ref={containerRef}>
|
||||||
<div className={cn('group relative pr-10', chatAnswerContainerInner)}>
|
<div className={cn('group relative pr-10', chatAnswerContainerInner)}>
|
||||||
<AnswerTriangle className='absolute -left-2 top-0 w-2 h-3 text-gray-100' />
|
|
||||||
<div
|
<div
|
||||||
ref={contentRef}
|
ref={contentRef}
|
||||||
className={cn('relative inline-block px-4 py-3 max-w-full bg-gray-100 rounded-b-2xl rounded-tr-2xl text-sm text-gray-900', workflowProcess && 'w-full')}
|
className={cn('relative inline-block px-4 py-3 max-w-full bg-gray-100 rounded-2xl text-sm text-gray-900', workflowProcess && 'w-full')}
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
!responding && (
|
!responding && (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user