mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
fix(mobile): backend log not shown (fixes #1058)
This commit is contained in:
parent
44928093bb
commit
05b67fc486
@ -147,11 +147,14 @@ export default class NoteDetailWidget extends NoteContextAwareWidget {
|
|||||||
*/
|
*/
|
||||||
checkFullHeight() {
|
checkFullHeight() {
|
||||||
// https://github.com/zadam/trilium/issues/2522
|
// https://github.com/zadam/trilium/issues/2522
|
||||||
this.$widget.toggleClass(
|
const isBackendNote = this.noteContext?.noteId === "_backendLog";
|
||||||
"full-height",
|
const isSqlNote = this.mime === "text/x-sqlite;schema=trilium";
|
||||||
(!this.noteContext.hasNoteList() && ["canvas", "webView", "noteMap", "mindMap", "geoMap"].includes(this.type) && this.mime !== "text/x-sqlite;schema=trilium") ||
|
const isFullHeightNoteType = ["canvas", "webView", "noteMap", "mindMap", "geoMap"].includes(this.type);
|
||||||
this.noteContext.viewScope.viewMode === "attachments"
|
const isFullHeight = (!this.noteContext.hasNoteList() && isFullHeightNoteType && !isSqlNote)
|
||||||
);
|
|| this.noteContext.viewScope.viewMode === "attachments"
|
||||||
|
|| isBackendNote;
|
||||||
|
|
||||||
|
this.$widget.toggleClass("full-height", isFullHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
getTypeWidget() {
|
getTypeWidget() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user