feat(chat): add animated deer to response indicator (#269)

This commit is contained in:
SToneX
2025-05-31 19:13:13 +08:00
committed by GitHub
parent eaaad27e44
commit 0da52d41a7
2 changed files with 20 additions and 2 deletions

Binary file not shown.

View File

@@ -130,8 +130,26 @@ export function MessagesBlock({ className }: { className?: string }) {
)}
>
<div className="flex items-center justify-between">
<div className="flex-grow">
<CardHeader>
<div className="flex flex-grow items-center">
{responding && (
<motion.div
className="ml-3"
initial={{ opacity: 0, scale: 0.8 }}
animate={{ opacity: 1, scale: 1 }}
exit={{ opacity: 0, scale: 0.8 }}
transition={{ duration: 0.3 }}
>
<video
// Walking deer animation, designed by @liangzhaojun. Thank you for creating it!
src="/images/walking_deer.webm"
autoPlay
loop
muted
className="h-[42px] w-[42px] object-contain"
/>
</motion.div>
)}
<CardHeader className={cn("flex-grow", responding && "pl-3")}>
<CardTitle>
<RainbowText animated={responding}>
{responding ? "Replaying" : `${replayTitle}`}