diff --git a/public/css/index-tailwind-output.css b/public/css/index-tailwind-output.css index 02dd9fe6f..0d22a8219 100644 --- a/public/css/index-tailwind-output.css +++ b/public/css/index-tailwind-output.css @@ -1168,14 +1168,6 @@ input[type="range"].range-lg::-moz-range-thumb { right: 0px; } -.top-4 { - top: 1rem; -} - -.right-4 { - right: 1rem; -} - .right-10 { right: 2.5rem; } @@ -1244,6 +1236,10 @@ input[type="range"].range-lg::-moz-range-thumb { top: 0.75rem; } +.top-4 { + top: 1rem; +} + .top-1 { top: 0.25rem; } @@ -1502,10 +1498,18 @@ input[type="range"].range-lg::-moz-range-thumb { margin-left: 0.25rem; } +.mt-2 { + margin-top: 0.5rem; +} + .ml-2 { margin-left: 0.5rem; } +.ml-4 { + margin-left: 1rem; +} + .mb-2 { margin-bottom: 0.5rem; } @@ -1522,18 +1526,10 @@ input[type="range"].range-lg::-moz-range-thumb { margin-bottom: 0.25rem; } -.ml-4 { - margin-left: 1rem; -} - .mt-8 { margin-top: 2rem; } -.mt-2 { - margin-top: 0.5rem; -} - .mb-8 { margin-bottom: 2rem; } @@ -3023,11 +3019,6 @@ input[type="range"].range-lg::-moz-range-thumb { border-style: none; } -.border-black { - --tw-border-opacity: 1; - border-color: rgb(0 0 0 / var(--tw-border-opacity)); -} - .border-gray-500 { --tw-border-opacity: 1; border-color: rgb(107 114 128 / var(--tw-border-opacity)); @@ -3038,6 +3029,11 @@ input[type="range"].range-lg::-moz-range-thumb { border-color: rgb(219 234 254 / var(--tw-border-opacity)); } +.border-black { + --tw-border-opacity: 1; + border-color: rgb(0 0 0 / var(--tw-border-opacity)); +} + .border-gray-200 { --tw-border-opacity: 1; border-color: rgb(229 231 235 / var(--tw-border-opacity)); @@ -4004,6 +4000,10 @@ input[type="range"].range-lg::-moz-range-thumb { padding-left: 0.5rem; } +.pl-1 { + padding-left: 0.25rem; +} + .pr-1 { padding-right: 0.25rem; } @@ -4032,10 +4032,6 @@ input[type="range"].range-lg::-moz-range-thumb { padding-right: 1rem; } -.pl-1 { - padding-left: 0.25rem; -} - .pb-1\.5 { padding-bottom: 0.375rem; } @@ -5149,6 +5145,10 @@ input[type="text"] { border-radius: 0.5rem; } +.box-shadow { + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); +} + /******************* Styling of input elements **********************/ /** diff --git a/src/UI/AllThemesGui.svelte b/src/UI/AllThemesGui.svelte index fc2977eb7..3d94571bc 100644 --- a/src/UI/AllThemesGui.svelte +++ b/src/UI/AllThemesGui.svelte @@ -27,6 +27,7 @@ import Github from "../assets/svg/Github.svelte" import { Utils } from "../Utils" import { ArrowTrendingUp } from "@babeard/svelte-heroicons/solid/ArrowTrendingUp" + import Searchbar from "./Base/Searchbar.svelte" const featureSwitches = new OsmConnectionFeatureSwitches() const osmConnection = new OsmConnection({ @@ -42,7 +43,7 @@ const tr = Translations.t.general.morescreen let userLanguages = osmConnection.userDetails.map((ud) => ud.languages) - let themeSearchText: UIEventSource = new UIEventSource(undefined) + let themeSearchText: UIEventSource = new UIEventSource("") document.addEventListener("keydown", function (event) { if (event.ctrlKey && event.code === "KeyF") { @@ -101,24 +102,7 @@ -
MoreScreen.applySearch(themeSearchText.data)} - > - -
+ MoreScreen.applySearch(themeSearchText.data)}/> diff --git a/src/UI/Base/Searchbar.svelte b/src/UI/Base/Searchbar.svelte new file mode 100644 index 000000000..4cbb35102 --- /dev/null +++ b/src/UI/Base/Searchbar.svelte @@ -0,0 +1,43 @@ + + + +
dispatch("search")} +> + +
diff --git a/src/UI/BigComponents/Geosearch.svelte b/src/UI/BigComponents/Geosearch.svelte index 87369e37a..55b9fbe31 100644 --- a/src/UI/BigComponents/Geosearch.svelte +++ b/src/UI/BigComponents/Geosearch.svelte @@ -107,13 +107,14 @@
-
+ {#if isRunning} {Translations.t.general.search.searching} {:else} { feedback = undefined @@ -131,5 +132,5 @@ {/if} {/if}
-
diff --git a/src/index.css b/src/index.css index 92c8281f5..70dd07ca3 100644 --- a/src/index.css +++ b/src/index.css @@ -178,6 +178,10 @@ input[type="text"] { border-radius: 0.5rem; } +.box-shadow { + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); +} + /******************* Styling of input elements **********************/ /**