Allow tapping on tippy triggers on mobile

This commit is contained in:
Jon Staab
2025-07-31 10:25:55 -07:00
parent 0a5bc618c2
commit 0cc0598287
2 changed files with 4 additions and 2 deletions

View File

@@ -160,11 +160,11 @@
}
.card2 {
@apply rounded-box p-6 text-base-content;
@apply rounded-box p-4 text-base-content sm:p-6;
}
.card2.card2-sm {
@apply p-4 text-base-content;
@apply p-2 text-base-content sm:p-4;
}
.column {

View File

@@ -3,6 +3,7 @@
import tippy from "tippy.js"
import {onMount, mount} from "svelte"
import {isMobile} from "@lib/html"
let {
component,
@@ -23,6 +24,7 @@
content: target,
animation: "shift-away",
appendTo: document.querySelector(".tippy-target")!,
trigger: isMobile ? "click" : "mouseenter focus",
...params,
})