X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/152e6d847003cb0b2b4505f79531941dc98e9e95..2ba00544d30017ad30570011b1a2bcc6a8da73a7:/src/components/ResultsList.svelte?ds=sidebyside diff --git a/src/components/ResultsList.svelte b/src/components/ResultsList.svelte index 668f330..8935ec1 100644 --- a/src/components/ResultsList.svelte +++ b/src/components/ResultsList.svelte @@ -1,7 +1,8 @@ {#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; }