X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/21bcfb32a13839ff8c69a452d09e294da800a15a..b9f6288dcf815c29223180a81e52af5dc5a19bed:/src/components/DetailsOneRow.svelte diff --git a/src/components/DetailsOneRow.svelte b/src/components/DetailsOneRow.svelte index cd74d93..ccc38cf 100644 --- a/src/components/DetailsOneRow.svelte +++ b/src/components/DetailsOneRow.svelte @@ -7,13 +7,14 @@ export let addressLine; export let bDistanceInMeters; + export let bMarkUnusedLines = false; $: bAddressLineUsed = addressLine.isaddress; - + $: reverse_only = Nominatim_Config.Reverse_Only; - - + + {#if addressLine.localname} {addressLine.localname} {:else} @@ -28,10 +29,10 @@ {#if addressLine.osm_id} details - {:else if addressLine.type.match(/^country/)} - search by name - {:else if addressLine.type === 'postcode'} - search by name + {:else if !reverse_only && addressLine.type.match(/^country/)} + search by name + {:else if !reverse_only && addressLine.type === 'postcode'} + search by name {/if} @@ -40,7 +41,9 @@ .notused { color:#ddd; } - .noname{ - color:#800; + + td { + padding: 2px 8px; + font-size: 0.9em; }