feat: ditch triplit, move to postgresql + drizzle orm
This commit is contained in:
@@ -6,8 +6,14 @@ const props = defineProps<{
|
||||
const { show, hide } = useTooltip();
|
||||
const triggerRef = ref<HTMLElement | null>(null);
|
||||
|
||||
const hasCursor = ref(false);
|
||||
|
||||
onMounted(() => {
|
||||
hasCursor.value = window.matchMedia('(hover: hover) and (pointer: fine)').matches;
|
||||
});
|
||||
|
||||
const onMouseEnter = () => {
|
||||
if (triggerRef.value) {
|
||||
if (triggerRef.value && hasCursor.value) {
|
||||
show(triggerRef.value, props.hotkey);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user