mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
improvements to saved search
This commit is contained in:
@@ -152,7 +152,8 @@ class NoteListRenderer {
|
||||
this.viewType = parentNote.getLabelValue('viewType');
|
||||
|
||||
if (!['list', 'grid'].includes(this.viewType)) {
|
||||
this.viewType = 'list'; // default
|
||||
// when not explicitly set decide based on note type
|
||||
this.viewType = parentNote.type === 'search' ? 'list' : 'grid';
|
||||
}
|
||||
|
||||
this.$noteList.addClass(this.viewType + '-view');
|
||||
|
||||
Reference in New Issue
Block a user