From 0a3d38125da56790e46f5909fbfa515dcc9e385f Mon Sep 17 00:00:00 2001 From: Matthias Metelka <62722460+kleinerpirat@users.noreply.github.com> Date: Thu, 13 Oct 2022 02:08:30 +0200 Subject: [PATCH] Add background to tag editor and improve autocomplete items (#2130) --- ts/tag-editor/AutocompleteItem.svelte | 16 +++++++++++----- ts/tag-editor/TagEditor.svelte | 3 +++ ts/tag-editor/WithAutocomplete.svelte | 4 ++-- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/ts/tag-editor/AutocompleteItem.svelte b/ts/tag-editor/AutocompleteItem.svelte index 3e9bf5982..cfec171a3 100644 --- a/ts/tag-editor/AutocompleteItem.svelte +++ b/ts/tag-editor/AutocompleteItem.svelte @@ -6,7 +6,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html export let selected = false; export let active = false; - let buttonRef: HTMLButtonElement; + let buttonRef: HTMLElement; $: if (selected && buttonRef) { /* buttonRef.scrollIntoView({ behavior: "smooth", block: "start" }); */ @@ -18,7 +18,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html } - +