messageList: Always show the full message title

If it's too long then line wrap instead of ellipsizing.

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6841
This commit is contained in:
Daniel van Vugt 2023-07-20 13:38:02 +08:00
parent 796f347fa7
commit e10ea0474d

View file

@ -492,6 +492,8 @@ export const Message = GObject.registerClass({
style_class: 'message-title',
y_align: Clutter.ActorAlign.END,
});
this.titleLabel.clutter_text.line_wrap = true;
this.titleLabel.clutter_text.line_wrap_mode = Pango.WrapMode.WORD_CHAR;
contentBox.add_child(this.titleLabel);
this._bodyLabel = new URLHighlighter('', true, this._useBodyMarkup);