Allow tapping on tippy triggers on mobile
This commit is contained in:
parent
0a5bc618c2
commit
0cc0598287
2 changed files with 4 additions and 2 deletions
|
|
@ -160,11 +160,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.card2 {
|
.card2 {
|
||||||
@apply rounded-box p-6 text-base-content;
|
@apply rounded-box p-4 text-base-content sm:p-6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card2.card2-sm {
|
.card2.card2-sm {
|
||||||
@apply p-4 text-base-content;
|
@apply p-2 text-base-content sm:p-4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.column {
|
.column {
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
import tippy from "tippy.js"
|
import tippy from "tippy.js"
|
||||||
import {onMount, mount} from "svelte"
|
import {onMount, mount} from "svelte"
|
||||||
|
import {isMobile} from "@lib/html"
|
||||||
|
|
||||||
let {
|
let {
|
||||||
component,
|
component,
|
||||||
|
|
@ -23,6 +24,7 @@
|
||||||
content: target,
|
content: target,
|
||||||
animation: "shift-away",
|
animation: "shift-away",
|
||||||
appendTo: document.querySelector(".tippy-target")!,
|
appendTo: document.querySelector(".tippy-target")!,
|
||||||
|
trigger: isMobile ? "click" : "mouseenter focus",
|
||||||
...params,
|
...params,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue