From fc42fd7a8603daef3c625e542ba1527daee7faf8 Mon Sep 17 00:00:00 2001 From: wukko Date: Wed, 2 Apr 2025 21:14:24 +0600 Subject: [PATCH] web/Omnibox: make the entire input bar focusable now it's possible to click through the omnibox icon --- web/src/components/save/Omnibox.svelte | 30 ++++++++++++++++++---- web/src/components/save/OmniboxIcon.svelte | 9 ++++++- 2 files changed, 33 insertions(+), 6 deletions(-) diff --git a/web/src/components/save/Omnibox.svelte b/web/src/components/save/Omnibox.svelte index 1a4e0e3c..0849ec64 100644 --- a/web/src/components/save/Omnibox.svelte +++ b/web/src/components/save/Omnibox.svelte @@ -126,6 +126,9 @@ break; } }; + + $: downloadable = validLink($link); + $: clearVisible = $link && !isLoading; @@ -144,7 +147,8 @@
- {#if $link && !isLoading} + {#if clearVisible} ($link = "")} /> {/if} - {#if validLink($link)} + {#if downloadable}