Skip to content

Commit

Permalink
pulse avatar while generating
Browse files Browse the repository at this point in the history
  • Loading branch information
knoopx committed Oct 30, 2023
1 parent 0aaa90d commit 1c84c17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/ChatConversationMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import "katex/dist/katex.min.css"
import "highlight.js/styles/github-dark.css"
import { useTheme } from "@/components/ThemeProvider"

export const Message = observer(({ role, content }) => {
export const Message = observer(({ role, content, open }) => {
const ref = useRef(null)
const { theme } = useTheme()
useEffect(() => {
Expand All @@ -38,6 +38,7 @@ export const Message = observer(({ role, content }) => {
"dark:bg-white dark:text-black bg-black text-white font-extrabold ":
role === "assistant",
"text-muted-foreground": role === "user",
"animate-pulse": role === "assistant" && open,
},
)}
>
Expand Down

0 comments on commit 1c84c17

Please sign in to comment.