diff --git a/UI/Base/BackButton.svelte b/UI/Base/BackButton.svelte index 2b11394e1..0c5d20d8e 100644 --- a/UI/Base/BackButton.svelte +++ b/UI/Base/BackButton.svelte @@ -6,15 +6,15 @@ import SubtleButton from "./SubtleButton.svelte" import { ChevronLeftIcon } from "@rgossiaux/svelte-heroicons/solid" import { createEventDispatcher } from "svelte" + import { twMerge } from "tailwind-merge" const dispatch = createEventDispatcher<{ click }>() - export let clss = "" + export let clss: string | undefined = undefined dispatch("click")} - options={{ extraClasses: clss + " flex items-center" }} -> + options={{ extraClasses: twMerge("flex items-center", clss) }}> diff --git a/UI/Base/FromHtml.svelte b/UI/Base/FromHtml.svelte index f00c437bf..b03b2624e 100644 --- a/UI/Base/FromHtml.svelte +++ b/UI/Base/FromHtml.svelte @@ -11,7 +11,7 @@ } } - export let clss = "" + export let clss: string | undefined = undefined {#if src !== undefined} diff --git a/UI/Base/LoginButton.svelte b/UI/Base/LoginButton.svelte index e57a9d51a..504d48713 100644 --- a/UI/Base/LoginButton.svelte +++ b/UI/Base/LoginButton.svelte @@ -6,7 +6,7 @@ import Svg from "../../Svg" export let osmConnection: OsmConnection - export let clss = "" + export let clss: string | undefined = undefined diff --git a/UI/InputElement/Helpers/FloorSelector.svelte b/UI/InputElement/Helpers/FloorSelector.svelte index 1b35c3dfd..8e283ad4b 100644 --- a/UI/InputElement/Helpers/FloorSelector.svelte +++ b/UI/InputElement/Helpers/FloorSelector.svelte @@ -1,4 +1,5 @@ {#if config !== undefined && (config?.condition === undefined || config.condition.matchesProperties(_tags))} -