Attachment filename truncated - Thunderbird: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(updated for 8.0 release and related XBL changes)
(→‎Composition window: new section based on Bozz's code)
Line 12: Line 12:
* For Thunderbird 8.0 and later, change ".attachmentBox" to "attachmentitem" [http://forums.mozillazine.org/viewtopic.php?p=11439701#p11439701]. You may also need to apply the code to [[Thunderbird_6.0%2C_etc.#Attachment_pane_redesign:_Open_expanded|keep the attachment pane expanded]] to avoid that the item width is reset to the default.
* For Thunderbird 8.0 and later, change ".attachmentBox" to "attachmentitem" [http://forums.mozillazine.org/viewtopic.php?p=11439701#p11439701]. You may also need to apply the code to [[Thunderbird_6.0%2C_etc.#Attachment_pane_redesign:_Open_expanded|keep the attachment pane expanded]] to avoid that the item width is reset to the default.
* Expect further changes with Thunderbird 10.0, which introduces variable grid width depending on the largest attachment name.
* Expect further changes with Thunderbird 10.0, which introduces variable grid width depending on the largest attachment name.
==Composition window==
The same problem may occur when writing a message, the attachment pane in the composition window has a fixed size and shows the attachments in a list. While the attachment pane can be extended by moving the splitter between addressing and attachment areas to the left, the default on opening the attachment pane is a constant. That default size can be increased by the following userChrome.css code [http://forums.mozillazine.org/viewtopic.php?f=39&t=2372363&p=11493623#p11493623]:
#attachmentBucket {
  width: 20em !important;
}


==Related bugs==
==Related bugs==

Revision as of 20:42, 23 November 2011

Thunderbird may truncate the attachment's filename when displaying it. You can prevent this by adding the following to the userChrome.css file in the chrome subdirectory in in your profile folder. The file does not exist by default, so you may need to create it before you can start adding your preferences.

.attachmentBox {
width: auto !important;
max-width: none !important;
min-width: 15em !important;
}

Notes:

  • For Thunderbird 8.0 and later, change ".attachmentBox" to "attachmentitem" [1]. You may also need to apply the code to keep the attachment pane expanded to avoid that the item width is reset to the default.
  • Expect further changes with Thunderbird 10.0, which introduces variable grid width depending on the largest attachment name.

Composition window

The same problem may occur when writing a message, the attachment pane in the composition window has a fixed size and shows the attachments in a list. While the attachment pane can be extended by moving the splitter between addressing and attachment areas to the left, the default on opening the attachment pane is a constant. That default size can be increased by the following userChrome.css code [2]:

#attachmentBucket {
  width: 20em !important;
}

Related bugs

  • Bug 654222 – Attachment list should resize to fit long names
  • Bug 630759 – Improve attachment list XBL bindings
  • Bug 697870 – Establish a maximum width for overly long file names in the attachment pane

External link


search keyword: abbreviated