Bug 1770364 - Fix issue with very long subject lines. r=mkmelin
authorAlessandro Castellani <alessandro@thunderbird.net>
Fri, 20 May 2022 18:14:12 +0000
changeset 35793 1b1369ea794e5fd662f602f2c7ce0d2361ca818e
parent 35792 cad163f4a89209d111576a44fa08b8b87ea9b487
child 35794 1d6bf8618dc6f2d964fcb7a5cc428b78177b5526
push id19942
push usergeoff@darktrojan.net
push dateSun, 22 May 2022 22:47:51 +0000
treeherdercomm-central@f83e0ba151d3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin
bugs1770364
Bug 1770364 - Fix issue with very long subject lines. r=mkmelin Differential Revision: https://phabricator.services.mozilla.com/D146933
mail/themes/shared/mail/messageHeader.css
--- a/mail/themes/shared/mail/messageHeader.css
+++ b/mail/themes/shared/mail/messageHeader.css
@@ -182,16 +182,21 @@ mail-tagfield[collapsed="true"] {
 
 /* ::::: expanded header pane ::::: */
 
 #expandedsubjectBox {
   font-weight: bold;
   flex: 1;
   margin-inline-start: calc(var(--message-header-field-offset) * -1);
   padding-inline: var(--message-header-field-offset);
+  /* IMPORTANT! Keep these to avoid issues with very long subjects. Bug 77806 */
+  display: -webkit-box;
+  -webkit-box-orient: vertical;
+  -webkit-line-clamp: 3;
+  overflow-y: auto;
 }
 
 /* ::::: attachment view ::::: */
 
 #attachmentBar {
   color: -moz-dialogtext;
   background-color: -moz-Dialog;
   padding: 3px 0;