forked from MapComplete/MapComplete
Apply twJoin
, twMerge
Looking at https://github.com/dcastil/tailwind-merge/blob/v1.13.1/docs/when-and-how-to-use-it.md#how-to-use-it I placed the "winning" class at the end for twMerge
This commit is contained in:
parent
9c96f6534f
commit
b55d976492
16 changed files with 52 additions and 43 deletions
|
@ -32,6 +32,7 @@
|
|||
import ToSvelte from "../../Base/ToSvelte.svelte"
|
||||
import Svg from "../../../Svg"
|
||||
import OpenBackgroundSelectorButton from "../../BigComponents/OpenBackgroundSelectorButton.svelte";
|
||||
import { twJoin } from "tailwind-merge"
|
||||
|
||||
export let coordinate: { lon: number; lat: number }
|
||||
export let state: SpecialVisualizationState
|
||||
|
@ -319,8 +320,8 @@
|
|||
/>
|
||||
</div>
|
||||
|
||||
<div class={(preciseInputIsTapped ? "" : "hidden") + " absolute top-4 flex justify-center w-full"}>
|
||||
<NextButton on:click={confirm} clss="primary w-fit ">
|
||||
<div class={twJoin(!preciseInputIsTapped && "hidden", "absolute top-4 flex justify-center w-full")}>
|
||||
<NextButton on:click={confirm} clss="primary w-fit">
|
||||
<div class="flex w-full justify-end gap-x-2">
|
||||
<Tr t={Translations.t.general.add.confirmLocation}/>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue