X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/163775c3501257af8f62601b0bb3565133c3bebb..c296bef87014f72b3f8aae878b9a23f6c08780a7:/src/components/ResultsList.svelte diff --git a/src/components/ResultsList.svelte b/src/components/ResultsList.svelte index 8c68bb3..8935ec1 100644 --- a/src/components/ResultsList.svelte +++ b/src/components/ResultsList.svelte @@ -1,12 +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} @@ -102,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{ @@ -130,11 +140,7 @@ margin-top: 1em; } - .btn-outline-secondary { - background-color: white; - } - - .btn-outline-secondary:hover { + .result.highlight :global(a):hover { color: #111; }