fix(popup_editor): collections being displayed under a full empty screen

This commit is contained in:
Elian Doran 2025-07-11 10:47:06 +03:00
parent 8343a5d1dd
commit ec7414b174
No known key found for this signature in database
3 changed files with 2 additions and 6 deletions

View File

@ -52,10 +52,6 @@ const TPL = /*html*/`\
z-index: 1000;
}
.modal.popup-editor-dialog .note-detail {
height: 100%;
}
.modal.popup-editor-dialog .note-detail-file {
padding: 0;
}

View File

@ -195,7 +195,7 @@ export default class NoteDetailWidget extends NoteContextAwareWidget {
// https://github.com/zadam/trilium/issues/2522
const isBackendNote = this.noteContext?.noteId === "_backendLog";
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)
|| this.noteContext?.viewScope?.viewMode === "attachments"
|| isBackendNote;

View File

@ -58,7 +58,7 @@ export default class NoteListWidget extends NoteContextAwareWidget {
return false;
}
if (this.displayOnlyCollections) {
if (this.displayOnlyCollections && this.note?.type !== "book") {
const viewType = this.note?.getLabelValue("viewType");
if (!viewType || ["grid", "list"].includes(viewType)) {
return false;