{
await showSettings.set(!$showSettings);
}}
@@ -49,7 +84,7 @@
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
- class="w-5 h-5"
+ class="size-4"
>
{
shareHandler();
}}
@@ -87,7 +122,59 @@
Share
-
+
+
+
+
+
+ Download
+
+
+ {
+ downloadChatAsTxt();
+ }}
+ >
+ Plain text (.txt)
+
+
+ {
+ downloadChatAsPdf();
+ }}
+ >
+ PDF document (.pdf)
+
+
+
+
+
diff --git a/src/routes/(app)/+page.svelte b/src/routes/(app)/+page.svelte
index 4e7ebfa30..1e7c03b38 100644
--- a/src/routes/(app)/+page.svelte
+++ b/src/routes/(app)/+page.svelte
@@ -847,6 +847,7 @@
bind:selectedModels
bind:showModelSelector
shareEnabled={messages.length > 0}
+ {chat}
{initNewChat}
{tags}
{addTag}
diff --git a/src/routes/(app)/c/[id]/+page.svelte b/src/routes/(app)/c/[id]/+page.svelte
index 74cf9df10..92cf2a107 100644
--- a/src/routes/(app)/c/[id]/+page.svelte
+++ b/src/routes/(app)/c/[id]/+page.svelte
@@ -865,6 +865,7 @@
0}