Skip to content

Build your personal knowledge base with Trilium Notes

fixes for tooltip handling

azivner62a250a7fcc8
diff --git a/Dockerfile b/Dockerfile
index 5e5a7de878..7b36b9a0bc 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM node:10.12.0
+FROM node:10.13.0
RUN apt-get update && apt-get install -y nasm
diff --git a/bin/build-server.sh b/bin/build-server.sh
index 420818f618..ae7803e4ae 100755
--- a/bin/build-server.sh
+++ b/bin/build-server.sh
@@ -7,7 +7,7 @@ fi
VERSION=$1
PKG_DIR=dist/trilium-linux-x64-server
-NODE_VERSION=10.12.0
+NODE_VERSION=10.13.0
rm -r $PKG_DIR
mkdir $PKG_DIR
diff --git a/src/public/javascripts/services/tooltip.js b/src/public/javascripts/services/tooltip.js
index 6bcd881b4b..c45d3729cc 100644
--- a/src/public/javascripts/services/tooltip.js
+++ b/src/public/javascripts/services/tooltip.js
@@ -41,6 +41,10 @@ function setupTooltip() {
if ($(this).is(":hover")) {
$(this).tooltip({
delay: {"show": 300, "hide": 100},
+ container: 'body',
+ placement: 'auto',
+ trigger: 'manual',
+ boundariesElement: 'window',
title: html,
html: true
});
@@ -50,7 +54,7 @@ function setupTooltip() {
});
$(document).on("mouseleave", "a", function() {
- $(this).tooltip('hide');
+ $(this).tooltip('dispose');
});
// close any tooltip after click, this fixes the problem that sometimes tooltips remained on the screen