Skip to content

Commit

Permalink
[email protected]: Limits the length when displaying subjects (
Browse files Browse the repository at this point in the history
…#5231)

* Closes #5230
  • Loading branch information
rdlmda authored Nov 29, 2024
1 parent 9290717 commit f943be9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion [email protected]/files/[email protected]/applet.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,9 @@ MyApplet.prototype = {

makeMenuItem: function(mail)
{
let mi = new MailItem(mail.id, mail.sender, mail.sender_address, mail.subject, mail.datetime, mail.account);
let mi = new MailItem(mail.id, mail.sender, mail.sender_address,
mail.subject.length > 64 ? mail.subject.substr(0,64) + "..." : mail.subject,
mail.datetime, mail.account);
mi.markReadButton.connect(
'clicked',
Lang.bind(this, function(){this.markMailRead(mail.id)}));
Expand Down

0 comments on commit f943be9

Please sign in to comment.