mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00
fixes for tooltip handling
This commit is contained in:
parent
8299524682
commit
62a250a7fc
@ -1,4 +1,4 @@
|
|||||||
FROM node:10.12.0
|
FROM node:10.13.0
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y nasm
|
RUN apt-get update && apt-get install -y nasm
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ fi
|
|||||||
|
|
||||||
VERSION=$1
|
VERSION=$1
|
||||||
PKG_DIR=dist/trilium-linux-x64-server
|
PKG_DIR=dist/trilium-linux-x64-server
|
||||||
NODE_VERSION=10.12.0
|
NODE_VERSION=10.13.0
|
||||||
|
|
||||||
rm -r $PKG_DIR
|
rm -r $PKG_DIR
|
||||||
mkdir $PKG_DIR
|
mkdir $PKG_DIR
|
||||||
|
@ -41,6 +41,10 @@ function setupTooltip() {
|
|||||||
if ($(this).is(":hover")) {
|
if ($(this).is(":hover")) {
|
||||||
$(this).tooltip({
|
$(this).tooltip({
|
||||||
delay: {"show": 300, "hide": 100},
|
delay: {"show": 300, "hide": 100},
|
||||||
|
container: 'body',
|
||||||
|
placement: 'auto',
|
||||||
|
trigger: 'manual',
|
||||||
|
boundariesElement: 'window',
|
||||||
title: html,
|
title: html,
|
||||||
html: true
|
html: true
|
||||||
});
|
});
|
||||||
@ -50,7 +54,7 @@ function setupTooltip() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$(document).on("mouseleave", "a", function() {
|
$(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
|
// close any tooltip after click, this fixes the problem that sometimes tooltips remained on the screen
|
||||||
|
Loading…
x
Reference in New Issue
Block a user