From c67132d2cc95f53b5fedcba0e65fd6fe9582667d Mon Sep 17 00:00:00 2001 From: wukko Date: Mon, 18 Nov 2024 21:06:19 +0600 Subject: [PATCH] web/Omnibox: add a cool animation to input icons --- web/src/components/save/Omnibox.svelte | 44 ++---------- web/src/components/save/OmniboxIcon.svelte | 78 ++++++++++++++++++++++ 2 files changed, 82 insertions(+), 40 deletions(-) create mode 100644 web/src/components/save/OmniboxIcon.svelte diff --git a/web/src/components/save/Omnibox.svelte b/web/src/components/save/Omnibox.svelte index 8b0b443c..a1e9873a 100644 --- a/web/src/components/save/Omnibox.svelte +++ b/web/src/components/save/Omnibox.svelte @@ -17,13 +17,11 @@ import type { Optional } from "$lib/types/generic"; import type { DownloadModeOption } from "$lib/types/settings"; - import IconLink from "@tabler/icons-svelte/IconLink.svelte"; - import IconLoader2 from "@tabler/icons-svelte/IconLoader2.svelte"; - import ClearButton from "$components/save/buttons/ClearButton.svelte"; import DownloadButton from "$components/save/buttons/DownloadButton.svelte"; import Switcher from "$components/buttons/Switcher.svelte"; + import OmniboxIcon from "$components/save/OmniboxIcon.svelte"; import ActionButton from "$components/buttons/ActionButton.svelte"; import SettingsButton from "$components/buttons/SettingsButton.svelte"; @@ -142,17 +140,7 @@ class:focused={isFocused} class:downloadable={validLink($link)} > - - + + import IconLink from "@tabler/icons-svelte/IconLink.svelte"; + import IconLoader2 from "@tabler/icons-svelte/IconLoader2.svelte"; + + export let loading: boolean; + + +
+
+ +
+ +
+ +