From 66976ea44da8096fdb42376fd034a96cdd38d5cd Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 1 Mar 2024 00:30:21 +0100 Subject: [PATCH] UX: sharescreen: fixes, slight reorg, add QR --- src/UI/BigComponents/ShareScreen.svelte | 91 ++++++++++++++----------- 1 file changed, 52 insertions(+), 39 deletions(-) diff --git a/src/UI/BigComponents/ShareScreen.svelte b/src/UI/BigComponents/ShareScreen.svelte index 16633d63e..fb90ed12a 100644 --- a/src/UI/BigComponents/ShareScreen.svelte +++ b/src/UI/BigComponents/ShareScreen.svelte @@ -11,10 +11,11 @@ import Tr from "../Base/Tr.svelte" import Translations from "../i18n/Translations" import { Utils } from "../../Utils" - import Svg from "../../Svg" - import ToSvelte from "../Base/ToSvelte.svelte" import { DocumentDuplicateIcon } from "@rgossiaux/svelte-heroicons/outline" import Share from "../../assets/svg/Share.svelte" + import ToSvelte from "../Base/ToSvelte.svelte" + import Img from "../Base/Img" + import Qr from "../../Utils/Qr" export let state: ThemeViewState const tr = Translations.t.general.sharescreen @@ -69,22 +70,32 @@ } -
- -
- {#if typeof navigator?.share === "function"} - - {/if} - {#if navigator.clipboard !== undefined} - - {/if} -
Utils.selectTextIn(e.target)}> - {linkToShare} +
+
+ +
+ + +
+ {#if typeof navigator?.share === "function"} + + {/if} + {#if navigator.clipboard !== undefined} + + {/if} +
Utils.selectTextIn(e.target)}> + {linkToShare} +
+
+ + new Img(new Qr(linkToShare).toImageElement(125)).SetStyle( + "width: 125px" + )} />
@@ -95,29 +106,31 @@ -