From bff5b015ea0b6a1eebc05e939dcce0b4e1f1c52f Mon Sep 17 00:00:00 2001 From: zadam Date: Wed, 9 Sep 2020 20:49:44 +0200 Subject: [PATCH] wrap note autocomplete for very long note path titles, closes #1221 --- src/public/stylesheets/style.css | 7 ++++++- src/services/note_cache/entities/note.js | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index 91556c525..82cd6541e 100644 --- a/src/public/stylesheets/style.css +++ b/src/public/stylesheets/style.css @@ -836,7 +836,12 @@ body { } .ck.ck-mentions > .ck-list__item { - max-width: 600px; + max-width: 700px; +} + +.ck.ck-mentions > .ck-list__item .ck-button { + /* wrap text for very long note path title */ + white-space: normal !important; } ul.fancytree-container li { diff --git a/src/services/note_cache/entities/note.js b/src/services/note_cache/entities/note.js index 7c39dd4ff..a33236b3c 100644 --- a/src/services/note_cache/entities/note.js +++ b/src/services/note_cache/entities/note.js @@ -157,7 +157,7 @@ class Note { */ get flatText() { if (!this.flatTextCache) { - this.flatTextCache = this.noteId + ' ' + this.type + ' ' + this.mime + ' '; + this.flatTextCache = this.noteId + ' ' + this.type + ' ' + this.mime + ' ' + this.dateCreated.substr(0, 16) + ' '; for (const branch of this.parentBranches) { if (branch.prefix) {