From 2135aa058ed9f9b592e6d59533edbbc69253640b Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 21 Nov 2021 16:16:28 +0100 Subject: [PATCH 1/3] increase sync version to 22 --- src/services/app_info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/app_info.js b/src/services/app_info.js index e5317c018..86169e48e 100644 --- a/src/services/app_info.js +++ b/src/services/app_info.js @@ -5,7 +5,7 @@ const packageJson = require('../../package'); const {TRILIUM_DATA_DIR} = require('./data_dir'); const APP_DB_VERSION = 185; -const SYNC_VERSION = 21; +const SYNC_VERSION = 22; const CLIPPER_PROTOCOL_VERSION = "1.0"; module.exports = { From 24210ef80c8585b64a00cd5316ae1c1563e0c9f7 Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Tue, 23 Nov 2021 20:37:32 +0000 Subject: [PATCH 2/3] fixed settings menu (#2374) (cherry picked from commit 3f40a52f6538020714a0a2083be12d08a62fbc57) --- src/public/app/widgets/note_tree.js | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.js index b07e87cba..a9538645d 100644 --- a/src/public/app/widgets/note_tree.js +++ b/src/public/app/widgets/note_tree.js @@ -150,6 +150,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget { doRender() { this.$widget = $(TPL); this.$tree = this.$widget.find('.tree'); + this.$treeActions = this.$widget.find(".tree-actions"); this.$tree.on("mousedown", ".unhoist-button", () => hoistedNoteService.unhoist()); this.$tree.on("mousedown", ".refresh-search-button", e => this.refreshSearch(e)); @@ -200,20 +201,16 @@ export default class NoteTreeWidget extends NoteContextAwareWidget { this.$hideIncludedImages.prop("checked", this.hideIncludedImages); this.$autoCollapseNoteTree.prop("checked", this.autoCollapseNoteTree); - let top = this.$treeSettingsButton[0].offsetTop; - let left = this.$treeSettingsButton[0].offsetLeft; - top -= this.$treeSettingsPopup.outerHeight() + 10; - left += this.$treeSettingsButton.outerWidth() - this.$treeSettingsPopup.outerWidth(); - - if (left < 0) { - left = 0; - } + const top = this.$treeActions[0].offsetTop - (this.$treeSettingsPopup.outerHeight()); + const left = Math.max( + 0, + this.$treeActions[0].offsetLeft - this.$treeSettingsPopup.outerWidth() + this.$treeActions.outerWidth() + ); this.$treeSettingsPopup.css({ - display: "block", - top: top, - left: left - }).addClass("show"); + top, + left + }).show(); return false; }); From 8c11d022fb7bccd5df679437d29f75b1b0e1fbcf Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 23 Nov 2021 21:53:32 +0100 Subject: [PATCH 3/3] release 0.48.7 --- package.json | 2 +- src/services/build.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1df452ebd..60d622c25 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "trilium", "productName": "Trilium Notes", "description": "Trilium Notes", - "version": "0.48.6", + "version": "0.48.7", "license": "AGPL-3.0-only", "main": "electron.js", "bin": { diff --git a/src/services/build.js b/src/services/build.js index 1696e0971..63eb5c7a9 100644 --- a/src/services/build.js +++ b/src/services/build.js @@ -1 +1 @@ -module.exports = { buildDate:"2021-11-13T22:49:58+01:00", buildRevision: "c94603010630cfafe64575ab378c482bb39fb083" }; +module.exports = { buildDate:"2021-11-23T21:53:32+01:00", buildRevision: "24210ef80c8585b64a00cd5316ae1c1563e0c9f7" };