Skip to content

Commit

Permalink
link overflowing with ellipsis
Browse files Browse the repository at this point in the history
  • Loading branch information
zadam committed Oct 10, 2021
1 parent f0c6724 commit f6776df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/public/app/services/note_content_renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ async function getRenderedContent(note, options = {}) {
}
else {
$renderedContent.css("padding", "10px");
$renderedContent.addClass("text-with-ellipsis");

let childNoteIds = note.getChildNoteIds();

Expand Down
6 changes: 6 additions & 0 deletions src/public/stylesheets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -944,3 +944,9 @@ input {
padding-left: 25px;
margin-bottom: 5px;
}

.text-with-ellipsis {
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

0 comments on commit f6776df

Please sign in to comment.