Skip to content

Commit

Permalink
Message Loading indicator should be on the message box
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdjohnson committed Mar 22, 2024
1 parent e97de45 commit acb4bbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/LazyMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ const LazyMessage = ({
}
key={uniqId}
>
{children}

{image && (
<img
className="mb-2 h-56 max-w-56 place-self-center rounded-md object-contain"
Expand All @@ -103,7 +101,9 @@ const LazyMessage = ({

{message.botName && <span className="opacity-30">{message.botName}</span>}

<div className="join join-vertical border border-base-content/20">
<div className="join join-vertical relative border border-base-content/20">
{children}

<div
className={
'w-full p-2 ' +
Expand Down
2 changes: 1 addition & 1 deletion src/components/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { chatStore } from '../models/ChatStore'
const LazyMessage = React.lazy(() => import('./LazyMessage'))

const Loading = () => (
<span className="indicator-item loading loading-dots loading-sm indicator-start ml-8" />
<span className="indicator-item loading loading-dots loading-sm indicator-start ml-4 opacity-65" />
)

// this one is observed for incoming text changes, the rest do not need to be observed
Expand Down

0 comments on commit acb4bbc

Please sign in to comment.