Skip to content

Commit

Permalink
Fix overlapping lines in attachment box with empty title
Browse files Browse the repository at this point in the history
  • Loading branch information
dstillman committed Jul 5, 2017
1 parent 198bd70 commit 53c3f62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chrome/content/zotero/bindings/attachmentbox.xml
Expand Up @@ -201,8 +201,8 @@
}
var firstSpace = val.indexOf(" ");
// Crop long uninterrupted text
if ((firstSpace == -1 && val.length > 29 ) || firstSpace > 29) {
// Crop long uninterrupted text, and use value attribute for empty field
if ((firstSpace == -1 && val.length > 29 ) || firstSpace > 29 || val === "") {
title.setAttribute('crop', 'end');
title.setAttribute('value', val);
}
Expand Down

0 comments on commit 53c3f62

Please sign in to comment.