mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 13:39:01 +01:00
fix(popup_editor): collections being displayed under a full empty screen
This commit is contained in:
parent
8343a5d1dd
commit
ec7414b174
@ -52,10 +52,6 @@ const TPL = /*html*/`\
|
|||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal.popup-editor-dialog .note-detail {
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal.popup-editor-dialog .note-detail-file {
|
.modal.popup-editor-dialog .note-detail-file {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -195,7 +195,7 @@ export default class NoteDetailWidget extends NoteContextAwareWidget {
|
|||||||
// https://github.com/zadam/trilium/issues/2522
|
// https://github.com/zadam/trilium/issues/2522
|
||||||
const isBackendNote = this.noteContext?.noteId === "_backendLog";
|
const isBackendNote = this.noteContext?.noteId === "_backendLog";
|
||||||
const isSqlNote = this.mime === "text/x-sqlite;schema=trilium";
|
const isSqlNote = this.mime === "text/x-sqlite;schema=trilium";
|
||||||
const isFullHeightNoteType = ["canvas", "webView", "noteMap", "mindMap", "mermaid"].includes(this.type ?? "");
|
const isFullHeightNoteType = ["canvas", "webView", "noteMap", "mindMap", "mermaid", "file"].includes(this.type ?? "");
|
||||||
const isFullHeight = (!this.noteContext?.hasNoteList() && isFullHeightNoteType && !isSqlNote)
|
const isFullHeight = (!this.noteContext?.hasNoteList() && isFullHeightNoteType && !isSqlNote)
|
||||||
|| this.noteContext?.viewScope?.viewMode === "attachments"
|
|| this.noteContext?.viewScope?.viewMode === "attachments"
|
||||||
|| isBackendNote;
|
|| isBackendNote;
|
||||||
|
|||||||
@ -58,7 +58,7 @@ export default class NoteListWidget extends NoteContextAwareWidget {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.displayOnlyCollections) {
|
if (this.displayOnlyCollections && this.note?.type !== "book") {
|
||||||
const viewType = this.note?.getLabelValue("viewType");
|
const viewType = this.note?.getLabelValue("viewType");
|
||||||
if (!viewType || ["grid", "list"].includes(viewType)) {
|
if (!viewType || ["grid", "list"].includes(viewType)) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user