svelte-streamdown 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
<span class={streamdown.theme.code.line}>
|
|
87
87
|
{#each line as token}
|
|
88
88
|
<span
|
|
89
|
-
style={streamdown.animationTextStyle}
|
|
89
|
+
style={streamdown.isMounted ? streamdown.animationTextStyle : ''}
|
|
90
90
|
style:color={token.color}
|
|
91
91
|
style:background-color={token.bgColor}
|
|
92
92
|
>
|
|
@@ -99,7 +99,10 @@
|
|
|
99
99
|
|
|
100
100
|
{#snippet Skeleton(lines: string[])}
|
|
101
101
|
{#each lines as line}
|
|
102
|
-
<span
|
|
102
|
+
<span
|
|
103
|
+
style={streamdown.isMounted ? streamdown.animationTextStyle : ''}
|
|
104
|
+
class={streamdown.theme.code.skeleton}
|
|
105
|
+
>
|
|
103
106
|
{line.trim().length > 0 ? line : '\u200B'}
|
|
104
107
|
</span>
|
|
105
108
|
{/each}
|