From 86436211086e81cceb6c3f2f226d5edc022d0fdf Mon Sep 17 00:00:00 2001 From: Maud Royer Date: Tue, 23 Jul 2024 15:18:29 +0200 Subject: [PATCH] Revert "fix: display of autocomplete choices" This reverts commit bb77d18530ef983ecdfadfd7ab032d3fd3d81d92. --- src/components/Autocomplete.svelte | 42 ++++++++++-------------------- 1 file changed, 14 insertions(+), 28 deletions(-) diff --git a/src/components/Autocomplete.svelte b/src/components/Autocomplete.svelte index 359df6d..050dd4e 100644 --- a/src/components/Autocomplete.svelte +++ b/src/components/Autocomplete.svelte @@ -75,7 +75,7 @@ window.addEventListener("click", focusOut); -
+
{#each selection as value (value)} {/each} @@ -90,22 +90,19 @@ on:keydown={inputKeydown} /> {#if focus} -
-
    - {#each searchResult as choice (choice.value)} -
  • - -
  • - {/each} -
-
+
    + {#each searchResult as choice (choice.value)} +
  • + +
  • + {/each} +
{/if} {#if selection.length > 0}
    @@ -157,17 +154,7 @@ } } - div.choices-container { - position: relative; - width: calc(100% - 50px); - } - ul.choices { - position: absolute; - background-color: #fff; - z-index: 2; - right: 0; - left: 0; list-style-type: none; padding: 0; margin: 0; @@ -179,7 +166,6 @@ ul.choices li { padding: 0; cursor: pointer; - background-color: #fff; } ul.choices li:hover {