mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
Always make notifications with '\n' in bannerText expandable
Right now notifications are expandable if the length of bannerText exceeds the notification's width - however, if bannerText contains newlines, it should be expandable regardless of the length. https://bugzilla.gnome.org/show_bug.cgi?id=610549
This commit is contained in:
parent
a21ba292eb
commit
f9c5202dd1
1 changed files with 2 additions and 1 deletions
|
|
@ -287,7 +287,8 @@ Notification.prototype = {
|
|||
overflow = true;
|
||||
}
|
||||
|
||||
if (overflow && this._bannerBodyText)
|
||||
if (this._bannerBodyText &&
|
||||
(overflow || this._bannerBodyText.indexOf('\n') > -1))
|
||||
this._addBannerBody();
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue