mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00
mitigate flickering in note tooltip, #2988
This commit is contained in:
parent
9114b1befb
commit
e6358afb62
@ -59,10 +59,11 @@ async function mouseEnterHandler() {
|
|||||||
$(this).tooltip({
|
$(this).tooltip({
|
||||||
delay: {"show": 300, "hide": 100},
|
delay: {"show": 300, "hide": 100},
|
||||||
container: 'body',
|
container: 'body',
|
||||||
placement: 'auto',
|
// https://github.com/zadam/trilium/issues/2794 https://github.com/zadam/trilium/issues/2988
|
||||||
|
// with bottom this flickering happens a bit less
|
||||||
|
placement: 'bottom',
|
||||||
trigger: 'manual',
|
trigger: 'manual',
|
||||||
boundary: 'window',
|
boundary: 'window',
|
||||||
offset: "0, 20", // workaround for https://github.com/zadam/trilium/issues/2794
|
|
||||||
title: html,
|
title: html,
|
||||||
html: true,
|
html: true,
|
||||||
template: '<div class="tooltip note-tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',
|
template: '<div class="tooltip note-tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user