Skip to content

Build your personal knowledge base with Trilium Notes

workaround for wrongly placed tooltip, closes #2794

zadam73425ec29d03
diff --git a/src/public/app/services/note_tooltip.js b/src/public/app/services/note_tooltip.js
index 6cfa245726..c3c974c276 100644
--- a/src/public/app/services/note_tooltip.js
+++ b/src/public/app/services/note_tooltip.js
@@ -63,6 +63,7 @@ async function mouseEnterHandler() {
placement: 'auto',
trigger: 'manual',
boundary: 'window',
+ offset: "0, 20", // workaround for https://github.com/zadam/trilium/issues/2794
title: html,
html: true,
template: '<div class="tooltip note-tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',
diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css
index 5fac6f97cf..647373b6d3 100644
--- a/src/public/stylesheets/style.css
+++ b/src/public/stylesheets/style.css
@@ -379,6 +379,10 @@ table.promoted-attributes-in-tooltip td, table.promoted-attributes-in-tooltip th
font-size: var(--main-font-size) !important;
}
+.tooltip .arrow {
+ display: none;
+}
+
.tooltip-inner {
padding: 15px;
background-color: var(--tooltip-background-color) !important;