mirror of
https://github.com/coracle-social/flotilla.git
synced 2025-12-10 19:07:06 +00:00
Allow tapping on tippy triggers on mobile
This commit is contained in:
@@ -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,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user