Skip to content

Commit

Permalink
Merge pull request #4174 from janhq/chore/experimental-ux-improvement
Browse files Browse the repository at this point in the history
chore: refactor chat message components
  • Loading branch information
louis-jan authored Dec 2, 2024
2 parents b5d88f9 + fc75fb6 commit a3849c4
Show file tree
Hide file tree
Showing 7 changed files with 466 additions and 407 deletions.
4 changes: 2 additions & 2 deletions web/screens/Thread/ThreadCenterPanel/ChatItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {

import ErrorMessage from '@/containers/ErrorMessage'

import SimpleTextMessage from '../SimpleTextMessage'
import MessageContainer from '../TextMessage'

type Ref = HTMLDivElement

Expand Down Expand Up @@ -54,7 +54,7 @@ const ChatItem = forwardRef<Ref, Props>((message, ref) => {
<>
{status !== MessageStatus.Error && content?.length > 0 && (
<div ref={ref} className="relative">
<SimpleTextMessage {...message} content={content} status={status} />
<MessageContainer {...message} content={content} status={status} />
</div>
)}
{errorMessage && !message.loadModelError && (
Expand Down
Loading

0 comments on commit a3849c4

Please sign in to comment.