From 187149b5b3ae102da0053c1fe6567a957bc7415d Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Thu, 25 Apr 2024 21:52:48 +0200 Subject: [PATCH] Some CSS cleanup --- public/css/index-tailwind-output.css | 24 ++++++++++++------- src/UI/AllThemesGui.svelte | 2 +- src/UI/BigComponents/Geosearch.svelte | 2 +- .../Helpers/NameSuggestionIndexInput.svelte | 19 ++++++++++----- 4 files changed, 31 insertions(+), 16 deletions(-) diff --git a/public/css/index-tailwind-output.css b/public/css/index-tailwind-output.css index dbf2c11d7..0904604a5 100644 --- a/public/css/index-tailwind-output.css +++ b/public/css/index-tailwind-output.css @@ -781,10 +781,6 @@ video { float: left; } -.m-8 { - margin: 2rem; -} - .m-4 { margin: 1rem; } @@ -797,6 +793,10 @@ video { margin: 0px; } +.m-8 { + margin: 2rem; +} + .m-2 { margin: 0.5rem; } @@ -900,10 +900,6 @@ video { margin-right: 4rem; } -.mb-4 { - margin-bottom: 1rem; -} - .mt-4 { margin-top: 1rem; } @@ -936,6 +932,10 @@ video { margin-right: 0.25rem; } +.mb-4 { + margin-bottom: 1rem; +} + .ml-1 { margin-left: 0.25rem; } @@ -1163,6 +1163,10 @@ video { height: 20rem; } +.h-36 { + height: 9rem; +} + .h-56 { height: 14rem; } @@ -1580,6 +1584,10 @@ video { overflow: hidden; } +.overflow-scroll { + overflow: scroll; +} + .overflow-x-auto { overflow-x: auto; } diff --git a/src/UI/AllThemesGui.svelte b/src/UI/AllThemesGui.svelte index 5c1694fb4..945fbf38e 100644 --- a/src/UI/AllThemesGui.svelte +++ b/src/UI/AllThemesGui.svelte @@ -100,7 +100,7 @@ { feedback = undefined diff --git a/src/UI/InputElement/Helpers/NameSuggestionIndexInput.svelte b/src/UI/InputElement/Helpers/NameSuggestionIndexInput.svelte index 3549f2e32..a9e472a08 100644 --- a/src/UI/InputElement/Helpers/NameSuggestionIndexInput.svelte +++ b/src/UI/InputElement/Helpers/NameSuggestionIndexInput.svelte @@ -5,6 +5,8 @@ import * as nsiFeatures from "../../../../node_modules/name-suggestion-index/dist/featureCollection.json" import { LocationConflation } from "@rapideditor/location-conflation" import * as turf from "@turf/turf" + import { SearchIcon } from "@rgossiaux/svelte-heroicons/solid" + import { twMerge } from "tailwind-merge" const nsiFile: NSIFile = nsi const loco = new LocationConflation(nsiFeatures) @@ -22,8 +24,6 @@ let maintag = helperArgs[0].toString() let tag = key - let selectedItem: NSIItem - const path = `${tag}s/${maintag.split("=")[0]}/${maintag.split("=")[1]}` // Check if the path exists in the NSI file @@ -34,6 +34,8 @@ let items = nsiFile.nsi[path].items + let selectedItem: NSIItem = items.find((item) => item.tags[tag] === value.data) + // Get the coordinates if the feature is a point, otherwise use the center let lon: number let lat: number @@ -62,7 +64,6 @@ } return true }) - .slice(0, 25) /** * Some interfaces for the NSI files @@ -121,11 +122,17 @@
- -
+
+ +
+
{#each filteredItems as item}
{ select(item) }}