From c9d8645abafcca52f95cad9ca7ff7a9d790ef719 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 14 Dec 2023 01:05:38 -0800 Subject: [PATCH] feat: share button added --- src/lib/components/layout/Navbar.svelte | 99 +++++++++++++++---------- src/routes/(app)/+page.svelte | 2 +- src/routes/(app)/c/[id]/+page.svelte | 2 +- 3 files changed, 63 insertions(+), 40 deletions(-) diff --git a/src/lib/components/layout/Navbar.svelte b/src/lib/components/layout/Navbar.svelte index 9bf15a07d..e6154a84f 100644 --- a/src/lib/components/layout/Navbar.svelte +++ b/src/lib/components/layout/Navbar.svelte @@ -5,48 +5,71 @@ import { chatId } from '$lib/stores'; export let title: string = 'Ollama Web UI'; + export let shareEnabled: boolean = false; - - + diff --git a/src/routes/(app)/+page.svelte b/src/routes/(app)/+page.svelte index 7c0c87b4d..728765c2a 100644 --- a/src/routes/(app)/+page.svelte +++ b/src/routes/(app)/+page.svelte @@ -566,7 +566,7 @@ }} /> - + 0} />
diff --git a/src/routes/(app)/c/[id]/+page.svelte b/src/routes/(app)/c/[id]/+page.svelte index f108ba222..9fef89bfd 100644 --- a/src/routes/(app)/c/[id]/+page.svelte +++ b/src/routes/(app)/c/[id]/+page.svelte @@ -579,7 +579,7 @@ /> {#if loaded} - + 0} />