From 272bb136d84065da7b96cda6cfc76195bd826a92 Mon Sep 17 00:00:00 2001 From: Tom <7283497+thfrei@users.noreply.github.com> Date: Sun, 10 Apr 2022 13:56:15 +0200 Subject: [PATCH] make canvas_note height 100% --- src/public/app/widgets/note_detail.js | 2 +- .../app/widgets/type_widgets/canvas_note.js | 26 ++++++++++++------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/src/public/app/widgets/note_detail.js b/src/public/app/widgets/note_detail.js index be61f6bc3..f19107bab 100644 --- a/src/public/app/widgets/note_detail.js +++ b/src/public/app/widgets/note_detail.js @@ -151,7 +151,7 @@ export default class NoteDetailWidget extends NoteContextAwareWidget { // https://github.com/zadam/trilium/issues/2522 this.$widget.toggleClass("full-height", !this.noteContext.hasNoteList() - && ['editable-text', 'editable-code'].includes(this.type)); + && ['editable-text', 'editable-code', 'canvas-note'].includes(this.type)); } getTypeWidget() { diff --git a/src/public/app/widgets/type_widgets/canvas_note.js b/src/public/app/widgets/type_widgets/canvas_note.js index 49f5d9aa1..b7ccd82e4 100644 --- a/src/public/app/widgets/type_widgets/canvas_note.js +++ b/src/public/app/widgets/type_widgets/canvas_note.js @@ -10,19 +10,14 @@ import uniqueId from "./canvas-note-utils/lodash.uniqueId.js"; import NoteContextAwareWidget from "../note_context_aware_widget.js"; const TPL = ` -