diff --git a/src/lib/components/chat/Artifacts.svelte b/src/lib/components/chat/Artifacts.svelte index 0a8ab956a..8873181ee 100644 --- a/src/lib/components/chat/Artifacts.svelte +++ b/src/lib/components/chat/Artifacts.svelte @@ -184,35 +184,117 @@
-
+
+ {#if contents.length > 0} +
+ + +
+
+
+ + +
+ {$i18n.t('Version {{selectedVersion}} of {{totalVersions}}', { + selectedVersion: selectedContentIdx + 1, + totalVersions: contents.length + })} +
+ + +
+
+ +
+ + + {#if contents[selectedContentIdx].type === 'iframe'} + + + + {/if} +
+
+ + +
+ {/if} + {#if overlay}
{/if} -
- -
- -
- -
-
{#if contents.length > 0} @@ -241,82 +323,4 @@
- - {#if contents.length > 0} -
-
-
- - -
- {$i18n.t('Version {{selectedVersion}} of {{totalVersions}}', { - selectedVersion: selectedContentIdx + 1, - totalVersions: contents.length - })} -
- - -
-
- -
- - - {#if contents[selectedContentIdx].type === 'iframe'} - - - - {/if} -
-
- {/if}