better sizing of search pane

This commit is contained in:
azivner
2018-06-04 20:22:41 -04:00
parent 015cd68756
commit 5a1938c078
3 changed files with 24 additions and 16 deletions

View File

@@ -63,7 +63,7 @@ function findNotes(query) {
continue;
}
const title = getNoteTitleForParent(noteId, parentNoteId).toLowerCase();
const title = getNoteTitle(noteId, parentNoteId).toLowerCase();
const foundTokens = [];
for (const token of tokens) {
@@ -116,7 +116,7 @@ function search(noteId, tokens, path, results) {
continue;
}
const title = getNoteTitleForParent(noteId, parentNoteId);
const title = getNoteTitle(noteId, parentNoteId);
const foundTokens = [];
for (const token of tokens) {
@@ -136,7 +136,7 @@ function search(noteId, tokens, path, results) {
}
}
function getNoteTitleForParent(noteId, parentNoteId) {
function getNoteTitle(noteId, parentNoteId) {
const prefix = prefixes[noteId + '-' + parentNoteId];
let title = noteTitles[noteId];
@@ -159,7 +159,7 @@ function getNoteTitleForPath(path) {
let parentNoteId = 'root';
for (const noteId of path) {
const title = getNoteTitleForParent(noteId, parentNoteId);
const title = getNoteTitle(noteId, parentNoteId);
titles.push(title);
parentNoteId = noteId;