diff --git a/src/UI/Base/FloatOver.svelte b/src/UI/Base/FloatOver.svelte index 0b09db3b4..b64f4b624 100644 --- a/src/UI/Base/FloatOver.svelte +++ b/src/UI/Base/FloatOver.svelte @@ -1,8 +1,8 @@ + +
+

+ +

+ +
+ +
+
diff --git a/src/UI/BigComponents/FilterPanel.svelte b/src/UI/BigComponents/FilterPanel.svelte index 3e8c7e90c..0104f6b5d 100644 --- a/src/UI/BigComponents/FilterPanel.svelte +++ b/src/UI/BigComponents/FilterPanel.svelte @@ -9,6 +9,7 @@ import Translations from "../i18n/Translations" import Tr from "../Base/Tr.svelte" import Filter from "../../assets/svg/Filter.svelte" + import TitledPanel from "../Base/TitledPanel.svelte" export let state: ThemeViewState let layout = state.layout @@ -46,12 +47,12 @@ } -
-

+ +
-

-
+
+ {#each layout.layers as layer} {/each} -
- + + + + diff --git a/src/UI/BigComponents/SelectedElementTitle.svelte b/src/UI/BigComponents/SelectedElementTitle.svelte index 65051624e..559a9fab8 100644 --- a/src/UI/BigComponents/SelectedElementTitle.svelte +++ b/src/UI/BigComponents/SelectedElementTitle.svelte @@ -72,14 +72,14 @@ {/if} - + diff --git a/src/UI/BigComponents/SelectedElementView.svelte b/src/UI/BigComponents/SelectedElementView.svelte index aa3d03049..128c37a14 100644 --- a/src/UI/BigComponents/SelectedElementView.svelte +++ b/src/UI/BigComponents/SelectedElementView.svelte @@ -22,6 +22,8 @@ selectedElement.properties.id ) + let isAddNew = tags.mapD(t => t.id.startsWith(LastClickFeatureSource.newPointElementId)) + function getLayer(properties: Record) { if (properties.id === "settings") { return UserRelatedState.usersettingsConfig @@ -76,7 +78,10 @@ {:else}
{#each $knownTagRenderings as config (config.id)} diff --git a/src/UI/Map/RasterLayerOverview.svelte b/src/UI/Map/RasterLayerOverview.svelte index 7cef37b0e..b15c30c03 100644 --- a/src/UI/Map/RasterLayerOverview.svelte +++ b/src/UI/Map/RasterLayerOverview.svelte @@ -11,6 +11,7 @@ import UserRelatedState from "../../Logic/State/UserRelatedState" import Translations from "../i18n/Translations" import Tr from "../Base/Tr.svelte" + import TitledPanel from "../Base/TitledPanel.svelte" export let availableLayers: Store export let mapproperties: MapProperties @@ -50,12 +51,8 @@ } -
- -

- -

-
+ +
-
+ diff --git a/src/UI/Map/RasterLayerPicker.svelte b/src/UI/Map/RasterLayerPicker.svelte index 055876071..5564b4933 100644 --- a/src/UI/Map/RasterLayerPicker.svelte +++ b/src/UI/Map/RasterLayerPicker.svelte @@ -77,7 +77,7 @@ {#if hasLayers}
{}}> - + > + + + - -
+ > + + + + + + {:else if $layerHasFilters} - + + + + +
@@ -246,13 +257,14 @@
+
{:else if !confirmedCategory} -

- + + -

{#if selectedPreset.preset.description} @@ -293,6 +305,8 @@ + + {:else if _globalFilter?.length > 0 && _globalFilter?.length > checkedOfGlobalFilters} {:else} - + + + {/if} diff --git a/src/UI/Popup/AddNewPoint/PresetList.svelte b/src/UI/Popup/AddNewPoint/PresetList.svelte index 586b29d98..a5680a169 100644 --- a/src/UI/Popup/AddNewPoint/PresetList.svelte +++ b/src/UI/Popup/AddNewPoint/PresetList.svelte @@ -13,6 +13,7 @@ import ToSvelte from "../../Base/ToSvelte.svelte" import BaseUIElement from "../../BaseUIElement" import Combine from "../../Base/Combine" + import TitledPanel from "../../Base/TitledPanel.svelte" /** * This component lists all the presets and allows the user to select one @@ -79,7 +80,7 @@ text: Translations.t.general.add.addNew.Subs( { category: preset.title }, preset.title["context"] - ), + ) } presets.push(simplified) } @@ -96,11 +97,9 @@ }>() -
-

- - -

+ + + {#each presets as preset} dispatch("select", preset)}> @@ -115,4 +114,4 @@
{/each} - + diff --git a/src/UI/ThemeViewGUI.svelte b/src/UI/ThemeViewGUI.svelte index 33d245d96..c93f40e5c 100644 --- a/src/UI/ThemeViewGUI.svelte +++ b/src/UI/ThemeViewGUI.svelte @@ -472,13 +472,6 @@ i !== undefined)}> state.previewedImage.setData(undefined)}> - @@ -550,7 +543,6 @@ state.guistate.backgroundLayerSelectionIsOpened.setData(false) }} > -
-
diff --git a/src/UI/Wikipedia/Wikidatapreview.svelte b/src/UI/Wikipedia/Wikidatapreview.svelte index 634f76ebe..d47a3c3d1 100644 --- a/src/UI/Wikipedia/Wikidatapreview.svelte +++ b/src/UI/Wikipedia/Wikidatapreview.svelte @@ -15,15 +15,15 @@ -
+
{#if imageUrl} {/if} -
+
-
+
{wikidata.id} diff --git a/src/UI/Wikipedia/WikipediaArticle.svelte b/src/UI/Wikipedia/WikipediaArticle.svelte index 48027f8e1..86198f9fe 100644 --- a/src/UI/Wikipedia/WikipediaArticle.svelte +++ b/src/UI/Wikipedia/WikipediaArticle.svelte @@ -3,14 +3,11 @@ import { Store } from "../../Logic/UIEventSource" import FromHtml from "../Base/FromHtml.svelte" import Loading from "../Base/Loading.svelte" - import { Disclosure, DisclosureButton, DisclosurePanel } from "@rgossiaux/svelte-headlessui" - import { ChevronRightIcon } from "@rgossiaux/svelte-heroicons/solid" - import ToSvelte from "../Base/ToSvelte.svelte" - import WikidataPreviewBox from "./WikidataPreviewBox" import Tr from "../Base/Tr.svelte" import Translations from "../i18n/Translations" import Wikipedia from "../../assets/svg/Wikipedia.svelte" import Wikidatapreview from "./Wikidatapreview.svelte" + import AccordionSingle from "../Flowbite/AccordionSingle.svelte" /** * Shows a wikipedia-article + wikidata preview for the given item @@ -21,40 +18,33 @@ ) -{#if $titleOnly} - {$wikipediaDetails.title} -{/if} -{#if $wikipediaDetails.articleUrl} - - - - -{/if} - -{#if $wikipediaDetails.wikidata} - -{/if} - -{#if $wikipediaDetails.articleUrl} - {#if $wikipediaDetails.firstParagraph === "" || $wikipediaDetails.firstParagraph === undefined} - - - - {:else} - - - - - - - - - - - - +
+ {#if $titleOnly} + {$wikipediaDetails.title} {/if} -{/if} + + + {#if $wikipediaDetails.wikidata} + + {/if} + + {#if $wikipediaDetails.articleUrl} + {#if $wikipediaDetails.firstParagraph === "" || $wikipediaDetails.firstParagraph === undefined} + + + + {:else} + + {#if $wikipediaDetails.articleUrl} + + + + + {/if} + + + + + {/if} + {/if} +