From 25cfa3e443bbec5850c5cbc6a404273bf82dac60 Mon Sep 17 00:00:00 2001 From: wukko Date: Mon, 15 Jul 2024 14:21:51 +0600 Subject: [PATCH] web/Omnibox: add extraction of links from page hash and query --- web/src/components/save/Omnibox.svelte | 88 ++++++++++++++++++-------- 1 file changed, 60 insertions(+), 28 deletions(-) diff --git a/web/src/components/save/Omnibox.svelte b/web/src/components/save/Omnibox.svelte index b8ba01b1..8f9f0cc6 100644 --- a/web/src/components/save/Omnibox.svelte +++ b/web/src/components/save/Omnibox.svelte @@ -1,8 +1,13 @@ @@ -102,9 +118,9 @@ id="link-area" bind:value={link} bind:this={linkInput} - on:input={() => isFocused = true} - on:focus={() => isFocused = true} - on:blur={() => isFocused = false} + on:input={() => (isFocused = true)} + on:focus={() => (isFocused = true)} + on:blur={() => (isFocused = false)} spellcheck="false" autocomplete="off" autocapitalize="off" @@ -115,7 +131,7 @@ /> {#if link} - link = ""} /> + (link = "")} /> {/if} {#if validLink(link)} @@ -124,16 +140,32 @@
- - {$t("save.auto")} + + + {$t("save.auto")} - - {$t("save.audio")} + + + {$t("save.audio")} - - {$t("save.mute")} + + + {$t("save.mute")} + {$t("save.paste")} @@ -237,7 +269,7 @@ } #action-container :global(.button) { - width: 100% + width: 100%; } #paste-mobile-text {