commit 53c3f62f1ebbeb4d2f57d59c76d7fd5abbc31624 parent 198bd70b59f8ceacb1bbc048f7b8a46e74709c1f Author: Dan Stillman <dstillman@zotero.org> Date: Wed, 5 Jul 2017 11:33:24 -0400 Fix overlapping lines in attachment box with empty title Diffstat:
| M | chrome/content/zotero/bindings/attachmentbox.xml | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/bindings/attachmentbox.xml b/chrome/content/zotero/bindings/attachmentbox.xml @@ -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); }