* Fixed a bunch of little bugs
* Added more options to attachment page and filters * Much better rendering and updating on attachment page * Math bug is fixed with better string parsing fixes #14 * Icons are limited to 4 per note * If an image is visible on note preview it will not appear in images preview * Touched up text algorithm to better display note titles
This commit is contained in:
1 parent
7fe702cb1b
commit
fab0b3873f
13 files changed
+208
-38
No files matched your search
@@ -593,6 +593,15 @@ Note.search = (userId, searchQuery, searchTags, fastFilters) => {
|
||||
note.attachment_highlights = []
|
||||
note.tag_highlights = []
|
||||
|
||||
//Limit number of attachment thumbs to 4
|
||||
if(note.thumbs){
|
||||
//Convert comma delimited string to array
|
||||
let thumbArray = note.thumbs.split(',').reverse()
|
||||
//Limit array to 4 or size of array
|
||||
thumbArray.length = Math.min(thumbArray.length, 4)
|
||||
note.thumbs = thumbArray
|
||||
}
|
||||
|
||||
//Push in search highlights
|
||||
if(highlights && highlights[note.id]){
|
||||
note['note_highlights'] = [highlights[note.id]]
|
||||
|
||||
Reference in new issue
Block a user