From: marc tobias Date: Mon, 26 Jun 2023 20:14:32 +0000 (+0200) Subject: cut lines at 100, spacing changes for linter X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/commitdiff_plain/9ad36e2ce2a63535b7071acd26bc819d989b2f17 cut lines at 100, spacing changes for linter --- diff --git a/src/components/DetailsLink.svelte b/src/components/DetailsLink.svelte index d914079..1785179 100644 --- a/src/components/DetailsLink.svelte +++ b/src/components/DetailsLink.svelte @@ -49,4 +49,6 @@ } - + + + diff --git a/src/components/DetailsOneRow.svelte b/src/components/DetailsOneRow.svelte index 67c5152..cbbad24 100644 --- a/src/components/DetailsOneRow.svelte +++ b/src/components/DetailsOneRow.svelte @@ -28,11 +28,17 @@ {@html formatDistance(addressLine.distance, bDistanceInMeters)} {#if addressLine.osm_id} - details + + details + {:else if !reverse_only && addressLine.type.match(/^country/)} - search by name + + search by name + {:else if !reverse_only && addressLine.type === 'postcode'} - search by name + + search by name + {/if} diff --git a/src/components/DetailsPostcodeHint.svelte b/src/components/DetailsPostcodeHint.svelte index 5946d2a..13ac99b 100644 --- a/src/components/DetailsPostcodeHint.svelte +++ b/src/components/DetailsPostcodeHint.svelte @@ -47,17 +47,25 @@ (how?)
-
\ No newline at end of file + diff --git a/src/components/Error.svelte b/src/components/Error.svelte index e8702b9..fad20eb 100644 --- a/src/components/Error.svelte +++ b/src/components/Error.svelte @@ -14,6 +14,9 @@
{error_message} - +
{/if} diff --git a/src/components/Header.svelte b/src/components/Header.svelte index 0fbead9..97cbebd 100644 --- a/src/components/Header.svelte +++ b/src/components/Header.svelte @@ -74,7 +74,13 @@ - diff --git a/src/components/LastUpdated.svelte b/src/components/LastUpdated.svelte index 08be5d9..0d7768d 100644 --- a/src/components/LastUpdated.svelte +++ b/src/components/LastUpdated.svelte @@ -65,7 +65,9 @@
{#if last_updated_date} Data last updated: - {timeago.format(new Date(last_updated_date))} + + {timeago.format(new Date(last_updated_date))} + {/if} (Details)
diff --git a/src/components/MapPosition.svelte b/src/components/MapPosition.svelte index 30d6bd9..074774d 100644 --- a/src/components/MapPosition.svelte +++ b/src/components/MapPosition.svelte @@ -115,9 +115,6 @@ text-align: right; } - - - @media (max-width: 768px) { #map-position { top: 20px; diff --git a/src/components/PageLink.svelte b/src/components/PageLink.svelte index df124f7..0e2920a 100644 --- a/src/components/PageLink.svelte +++ b/src/components/PageLink.svelte @@ -16,4 +16,6 @@ } - + + + diff --git a/src/components/ResultsList.svelte b/src/components/ResultsList.svelte index 2fc6828..3b6c713 100644 --- a/src/components/ResultsList.svelte +++ b/src/components/ResultsList.svelte @@ -56,7 +56,10 @@
{#each aSearchResults as aResult, iResNum} -
+
@@ -64,7 +67,9 @@ {formatLabel(aResult)}

{aResult.lat},{aResult.lon}

- details + + details +
{/each} @@ -119,7 +124,7 @@ } .result .coords { - display: none; + display: none; } .noresults{ diff --git a/src/components/ReverseLink.svelte b/src/components/ReverseLink.svelte index bbd54d7..cfea7c1 100644 --- a/src/components/ReverseLink.svelte +++ b/src/components/ReverseLink.svelte @@ -30,4 +30,8 @@ $: { } - refresh_page('reverse', params)} href={href} class={extra_classes}> + refresh_page('reverse', params)} + href={href} + class={extra_classes}> + + diff --git a/src/components/SearchSection.svelte b/src/components/SearchSection.svelte index e50bbdf..a43ad75 100644 --- a/src/components/SearchSection.svelte +++ b/src/components/SearchSection.svelte @@ -79,10 +79,14 @@ @@ -100,14 +104,21 @@
- - - - - - - + + + + + + +
@@ -145,14 +156,21 @@
- - - - - - - + + + + + + +
@@ -181,14 +199,18 @@
  • - +
  • - @@ -196,15 +218,18 @@
  • -
  • - @@ -212,7 +237,8 @@
  • - - OSM type+id (N123, n123, W123, w123, R123, r123), + OSM type+id (N123, + n123, + W123, + w123, + R123, + r123), Place id (1234) or URL (https://openstreetmap.org/way/123) diff --git a/src/components/UrlSubmitForm.svelte b/src/components/UrlSubmitForm.svelte index 01feea1..01f5a57 100644 --- a/src/components/UrlSubmitForm.svelte +++ b/src/components/UrlSubmitForm.svelte @@ -48,7 +48,11 @@ } -