mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
note list improvements
This commit is contained in:
parent
60e2026850
commit
de1584eab8
@ -155,8 +155,8 @@ class NoteListRenderer {
|
||||
this.page = 1;
|
||||
this.pageSize = parseInt(parentNote.getLabelValue('pageSize'));
|
||||
|
||||
if (!this.pageSize || this.pageSize < 1 || this.pageSize > 10000) {
|
||||
this.pageSize = 10;
|
||||
if (!this.pageSize || this.pageSize < 1) {
|
||||
this.pageSize = 20;
|
||||
}
|
||||
|
||||
this.viewType = parentNote.getLabelValue('viewType');
|
||||
|
@ -262,6 +262,10 @@ class TreeCache {
|
||||
}
|
||||
|
||||
getNoteFromCache(noteId) {
|
||||
if (!noteId) {
|
||||
throw new Error("Empty noteId");
|
||||
}
|
||||
|
||||
return this.notes[noteId];
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,7 @@ const TPL = `
|
||||
flex-grow: 100000;
|
||||
flex-shrink: 100000;
|
||||
min-height: 0;
|
||||
padding: 0 10px 10px 10px;
|
||||
overflow: auto;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user