From e34e39d20ff2544c37aac123c8d03a24ceda5d80 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 5 May 2023 00:34:30 +0200 Subject: [PATCH] Add a search bar to filter many mappings --- .../TagRendering/TagRenderingMapping.svelte | 54 +++++++------ .../TagRenderingMappingInput.svelte | 76 +++++++++++++++++++ .../TagRendering/TagRenderingQuestion.svelte | 61 ++++++--------- 3 files changed, 130 insertions(+), 61 deletions(-) create mode 100644 UI/Popup/TagRendering/TagRenderingMappingInput.svelte diff --git a/UI/Popup/TagRendering/TagRenderingMapping.svelte b/UI/Popup/TagRendering/TagRenderingMapping.svelte index 95f83f707..a9fad70eb 100644 --- a/UI/Popup/TagRendering/TagRenderingMapping.svelte +++ b/UI/Popup/TagRendering/TagRenderingMapping.svelte @@ -1,34 +1,38 @@ {#if mapping.icon !== undefined} -
- - -
+
+ + +
{:else if mapping.then !== undefined} - + {/if} - diff --git a/UI/Popup/TagRendering/TagRenderingMappingInput.svelte b/UI/Popup/TagRendering/TagRenderingMappingInput.svelte new file mode 100644 index 000000000..33182f31b --- /dev/null +++ b/UI/Popup/TagRendering/TagRenderingMappingInput.svelte @@ -0,0 +1,76 @@ + + +{#if $matchesTerm && !$mappingIsHidden } + + +{/if} diff --git a/UI/Popup/TagRendering/TagRenderingQuestion.svelte b/UI/Popup/TagRendering/TagRenderingQuestion.svelte index c6990080d..220bd5777 100644 --- a/UI/Popup/TagRendering/TagRenderingQuestion.svelte +++ b/UI/Popup/TagRendering/TagRenderingQuestion.svelte @@ -1,9 +1,8 @@