X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/c636646759d9c541f7baf19812be18d002a8ce1d..2ba00544d30017ad30570011b1a2bcc6a8da73a7:/src/components/ResultsList.svelte?ds=sidebyside 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 +