X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/c636646759d9c541f7baf19812be18d002a8ce1d..c296bef87014f72b3f8aae878b9a23f6c08780a7:/src/components/ResultsList.svelte diff --git a/src/components/ResultsList.svelte b/src/components/ResultsList.svelte index cf931cb..8935ec1 100644 --- a/src/components/ResultsList.svelte +++ b/src/components/ResultsList.svelte @@ -1,11 +1,13 @@ {#if aSearchResults && aSearchResults.length > 0} -
+
{#each aSearchResults as aResult, iResNum} -
+ +
{aResult.display_name} {formatLabel(aResult)} -

{aResult.lat},{aResult.lon}

+

{aResult.lat},{aResult.lon}

- details + + details +
{/each} @@ -101,22 +111,23 @@ background-color: #D9E7F7; border-color: #9DB9E4; } - .result.highlight .details { + .result.highlight :global(a) { margin: 10px auto; display: block; max-width: 10em; padding: 1px; + background-color: white; } .result .type{ color: gray; font-size: 0.8em; } - .result .details { + .result :global(a) { display: none; } .result .coords { - display: none; + display: none; } .noresults{ @@ -129,11 +140,7 @@ margin-top: 1em; } - .btn-outline-secondary { - background-color: white; - } - - .btn-outline-secondary:hover { + .result.highlight :global(a):hover { color: #111; } - \ No newline at end of file +