Merge remote-tracking branch 'origin/stable'

This commit is contained in:
zadam 2022-04-18 18:59:30 +02:00
commit f6ebc76917
3 changed files with 9 additions and 0 deletions

View File

@ -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>',

View File

@ -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;

View File

@ -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)