From 664cce87b8c31be9b2274a880ef2e954b59933bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Fri, 11 Feb 2022 15:37:23 +0100 Subject: [PATCH] Improving rendering of share screen --- front/src/Components/Menu/GuestSubMenu.svelte | 40 ++++++++++++------- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/front/src/Components/Menu/GuestSubMenu.svelte b/front/src/Components/Menu/GuestSubMenu.svelte index 34fba1af..f24a3f90 100644 --- a/front/src/Components/Menu/GuestSubMenu.svelte +++ b/front/src/Components/Menu/GuestSubMenu.svelte @@ -28,6 +28,8 @@ } } + let canShare = navigator.canShare; + async function shareLink() { const shareData = { url: getLink() }; @@ -42,18 +44,21 @@
+ {#if (!canShare) } + {:else}

{$LL.menu.invite.description()}

+ {/if}

Select an entry point

-
+