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

This commit is contained in:
zadam 2020-09-09 20:49:44 +02:00
parent ee4ce3ffd8
commit bff5b015ea
2 changed files with 7 additions and 2 deletions

View File

@ -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 {

View File

@ -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) {