Skip to content

Build your personal knowledge base with Trilium Notes

wrap note autocomplete for very long note path titles, closes #1221

zadambff5b015ea0b
diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css
index 91556c525f..82cd6541ed 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 7c39dd4ffd..a33236b3c7 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) {