dispatch("click")}
- options={{ extraClasses: clss + " flex items-center" }}
->
+ options={{ extraClasses: twMerge("flex items-center", clss) }}>
diff --git a/UI/Base/SubtleButton.svelte b/UI/Base/SubtleButton.svelte
index 5528eac2c..1b2b8bd60 100644
--- a/UI/Base/SubtleButton.svelte
+++ b/UI/Base/SubtleButton.svelte
@@ -2,23 +2,22 @@
import { createEventDispatcher } from "svelte"
import BaseUIElement from "../BaseUIElement"
import Img from "./Img"
+ import { twJoin, twMerge } from "tailwind-merge"
export let imageUrl: string | BaseUIElement = undefined
- export let message: string | BaseUIElement = undefined
+ export const message: string | BaseUIElement = undefined
export let options: {
imgSize?: string
extraClasses?: string
} = {}
- let imgClasses = "block justify-center shrink-0 mr-4 " + (options?.imgSize ?? "h-11 w-11")
+ let imgClasses = twJoin("block justify-center shrink-0 mr-4", options?.imgSize ?? "h-11 w-11")
const dispatch = createEventDispatcher<{ click }>()