Kaynağa Gözat

style: chat answer align with new UI (#9658)

Hash Brown 6 ay önce
ebeveyn
işleme
01a2513812

+ 1 - 2
web/app/components/base/chat/chat/answer/basic-content.tsx

@@ -16,12 +16,11 @@ const BasicContent: FC<BasicContentProps> = ({
   } = item
 
   if (annotation?.logAnnotation)
-    return <Markdown content={annotation?.logAnnotation.content || ''} className='px-2 py-1' />
+    return <Markdown content={annotation?.logAnnotation.content || ''} />
 
   return (
     <Markdown
       className={cn(
-        'px-2 py-1',
         item.isError && '!text-[#F04438]',
       )}
       content={content}

+ 1 - 3
web/app/components/base/chat/chat/answer/index.tsx

@@ -14,7 +14,6 @@ import BasicContent from './basic-content'
 import SuggestedQuestions from './suggested-questions'
 import More from './more'
 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 Citation from '@/app/components/base/chat/chat/citation'
 import { EditTitle } from '@/app/components/app/annotation/edit-annotation-modal/edit-item'
@@ -110,10 +109,9 @@ const Answer: FC<AnswerProps> = ({
       </div>
       <div className='chat-answer-container group grow w-0 ml-4' ref={containerRef}>
         <div className={cn('group relative pr-10', chatAnswerContainerInner)}>
-          <AnswerTriangle className='absolute -left-2 top-0 w-2 h-3 text-gray-100' />
           <div
             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 && (