From a572918e6cd3abe6e4b4f5083db2eb91e2345174 Mon Sep 17 00:00:00 2001 From: Aditya Chaudhary <30+useradityaa@noreply.coracle.social> Date: Tue, 11 Aug 2026 17:04:47 +0000 Subject: [PATCH] Persistent call banner (#341) Co-authored-by: Aditya Chaudhary <30+useradityaa@noreply.coracle.social> --- src/app/components/AppContainer.svelte | 20 +++--- src/app/components/CallBanner.svelte | 97 ++++++++++++++++++++++++++ 2 files changed, 109 insertions(+), 8 deletions(-) create mode 100644 src/app/components/CallBanner.svelte diff --git a/src/app/components/AppContainer.svelte b/src/app/components/AppContainer.svelte index f9176376..b3584f22 100644 --- a/src/app/components/AppContainer.svelte +++ b/src/app/components/AppContainer.svelte @@ -3,6 +3,7 @@ import Dialog from "@lib/components/Dialog.svelte" import Landing from "@app/components/Landing.svelte" import Toast from "@app/components/Toast.svelte" + import CallBanner from "@app/components/CallBanner.svelte" import PrimaryNav from "@app/components/PrimaryNav.svelte" import {app} from "@app/core" import {modal} from "@app/modal" @@ -14,13 +15,16 @@ const {children}: Props = $props() -
- {#if $app.user?.pubkey} - - {@render children?.()} - - {:else if !$modal} - - {/if} +
+
+ {#if $app.user?.pubkey} + + {@render children?.()} + + {:else if !$modal} + + {/if} +
+
diff --git a/src/app/components/CallBanner.svelte b/src/app/components/CallBanner.svelte new file mode 100644 index 00000000..b732f801 --- /dev/null +++ b/src/app/components/CallBanner.svelte @@ -0,0 +1,97 @@ + + +{#if visible} +
+ +
+ {#if $callState === CallState.Connected} + + {/if} + +
+
+{/if}