From 51e5f591b267b3dee30ea514e26bdf3fd928acf8 Mon Sep 17 00:00:00 2001 From: zadam Date: Sat, 16 Apr 2022 15:10:16 +0200 Subject: [PATCH 1/2] null check --- src/services/handlers.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/services/handlers.js b/src/services/handlers.js index 8a8a0e072..eedfb9a34 100644 --- a/src/services/handlers.js +++ b/src/services/handlers.js @@ -6,6 +6,10 @@ const becca = require('../becca/becca'); const Attribute = require('../becca/entities/attribute'); function runAttachedRelations(note, relationName, originEntity) { + if (!note) { + return; + } + // same script note can get here with multiple ways, but execute only once const notesToRun = new Set( note.getRelations(relationName) From 73425ec29d035629c4b65b92a318d47183ca75c6 Mon Sep 17 00:00:00 2001 From: zadam Date: Sat, 16 Apr 2022 15:51:30 +0200 Subject: [PATCH 2/2] workaround for wrongly placed tooltip, closes #2794 --- src/public/app/services/note_tooltip.js | 1 + src/public/stylesheets/style.css | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/public/app/services/note_tooltip.js b/src/public/app/services/note_tooltip.js index 6cfa24572..c3c974c27 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: '', diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index 5fac6f97c..647373b6d 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;