Skip to content

Commit 32cf8dd

Browse files
committed
wip improve stop frame
1 parent dba8aca commit 32cf8dd

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/lib/components/chat/ChatWindow.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@
346346

347347
{#if messages.length > 0}
348348
<div class="flex h-max flex-col gap-8 pb-52">
349-
{#each messages as message, idx (message.id)}
349+
{#each messages as message, idx (idx)}
350350
<ChatMessage
351351
{loading}
352352
{message}

src/lib/components/chat/MessageAvatar.svelte

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
// Resume animations and start once
1212
svgEl?.unpauseAnimations?.();
1313
blobAnim.beginElement();
14-
} else {
15-
// Stop current run and pause so it cannot restart from queued begins
16-
svgEl?.pauseAnimations?.();
1714
}
1815
1916
return () => {
@@ -54,7 +51,7 @@
5451
begin="indefinite"
5552
end="indefinite"
5653
dur="3.2s"
57-
repeatCount="indefinite"
54+
repeatCount={"indefinite"}
5855
fill="freeze"
5956
calcMode="spline"
6057
keyTimes="0; .33; .66; .9; 1"

0 commit comments

Comments
 (0)