mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
feat(client/search): apply full-width for collection view
This commit is contained in:
@@ -78,6 +78,10 @@ export default class NoteWrapperWidget extends FlexContainer<BasicWidget> {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (note.type === "search" && ![ "grid", "list" ].includes(note.getLabelValue("viewType") ?? "list")) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return !!note?.isLabelTruthy("fullContentWidth");
|
return !!note?.isLabelTruthy("fullContentWidth");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -87,7 +91,7 @@ export default class NoteWrapperWidget extends FlexContainer<BasicWidget> {
|
|||||||
const noteId = this.noteContext?.noteId;
|
const noteId = this.noteContext?.noteId;
|
||||||
if (
|
if (
|
||||||
loadResults.isNoteReloaded(noteId) ||
|
loadResults.isNoteReloaded(noteId) ||
|
||||||
loadResults.getAttributeRows().find((attr) => attr.type === "label" && ["cssClass", "language"].includes(attr.name ?? "") && attributeService.isAffecting(attr, this.noteContext?.note))
|
loadResults.getAttributeRows().find((attr) => attr.type === "label" && ["cssClass", "language", "viewType"].includes(attr.name ?? "") && attributeService.isAffecting(attr, this.noteContext?.note))
|
||||||
) {
|
) {
|
||||||
this.refresh();
|
this.refresh();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user