Skip to content

Commit 05b67fc

Browse files
committed
fix(mobile): backend log not shown (fixes #1058)
1 parent 4492809 commit 05b67fc

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/public/app/widgets/note_detail.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,14 @@ export default class NoteDetailWidget extends NoteContextAwareWidget {
147147
*/
148148
checkFullHeight() {
149149
// https://github.com/zadam/trilium/issues/2522
150-
this.$widget.toggleClass(
151-
"full-height",
152-
(!this.noteContext.hasNoteList() && ["canvas", "webView", "noteMap", "mindMap", "geoMap"].includes(this.type) && this.mime !== "text/x-sqlite;schema=trilium") ||
153-
this.noteContext.viewScope.viewMode === "attachments"
154-
);
150+
const isBackendNote = this.noteContext?.noteId === "_backendLog";
151+
const isSqlNote = this.mime === "text/x-sqlite;schema=trilium";
152+
const isFullHeightNoteType = ["canvas", "webView", "noteMap", "mindMap", "geoMap"].includes(this.type);
153+
const isFullHeight = (!this.noteContext.hasNoteList() && isFullHeightNoteType && !isSqlNote)
154+
|| this.noteContext.viewScope.viewMode === "attachments"
155+
|| isBackendNote;
156+
157+
this.$widget.toggleClass("full-height", isFullHeight);
155158
}
156159

157160
getTypeWidget() {

0 commit comments

Comments
 (0)