From 53c3f62f1ebbeb4d2f57d59c76d7fd5abbc31624 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 5 Jul 2017 11:33:24 -0400 Subject: [PATCH] Fix overlapping lines in attachment box with empty title --- 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 index e105ad643..36f16376e 100644 --- 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); }