mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 13:40:55 +00:00
Update Tooltip.svelte
This commit is contained in:
parent
0bc3e0a302
commit
b9444d00b3
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
export let placement = 'top';
|
export let placement = 'top';
|
||||||
export let content = `I'm a tooltip!`;
|
export let content = `I'm a tooltip!`;
|
||||||
|
export let touch = true;
|
||||||
|
|
||||||
let tooltipElement;
|
let tooltipElement;
|
||||||
let tooltipInstance;
|
let tooltipInstance;
|
||||||
@ -15,7 +16,8 @@
|
|||||||
tooltipInstance = tippy(tooltipElement, {
|
tooltipInstance = tippy(tooltipElement, {
|
||||||
content: content,
|
content: content,
|
||||||
placement: placement,
|
placement: placement,
|
||||||
allowHTML: true
|
allowHTML: true,
|
||||||
|
touch: touch
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user