Skip to content

Commit

Permalink
Fix very long titles breaking list view (brantje#103).
Browse files Browse the repository at this point in the history
  • Loading branch information
trurli committed Apr 14, 2018
1 parent 84b38cd commit ffdc143
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
5 changes: 5 additions & 0 deletions css/app.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/app.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/app/filters/trusted.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@

angular.module('NextNotesApp').filter('trusted', function($sce){
return function(html){
return $sce.trustAsHtml(html)
}
return $sce.trustAsHtml(html);
};
});
8 changes: 7 additions & 1 deletion sass/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -978,4 +978,10 @@
}
.mce-tinymce.mce-fullscreen{
margin-top: 45px;
}
}

.note-title {
overflow: hidden;
text-overflow: ellipsis;
display: block !important;
}
2 changes: 1 addition & 1 deletion templates/views/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
class="file pointer"
ng-if="hasPermission(note, 'update')"
ng-click="editNote(note)">
<div>{{note.title}}</div>
<div class="caption note-title">{{note.title}}</div>
<div class="caption">
<small>{{ note.content_plain.substr(0, 500) | htmlToPlaintext}}
</small>
Expand Down

0 comments on commit ffdc143

Please sign in to comment.