dialog: Wrap titles

Dialogs should not use titles that are too long to fit, but if
they do, wrapping is more appropriate than ellipsizing.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3540>
This commit is contained in:
Florian Müllner 2024-11-07 16:23:48 +01:00 committed by Marge Bot
parent f95bddb811
commit fbaead359a

View File

@ -175,6 +175,9 @@ export const MessageDialogContent = GObject.registerClass({
this._title = new St.Label({style_class: 'message-dialog-title'}); this._title = new St.Label({style_class: 'message-dialog-title'});
this._description = new St.Label({style_class: 'message-dialog-description'}); this._description = new St.Label({style_class: 'message-dialog-description'});
this._title.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
this._title.clutter_text.line_wrap = true;
this._description.clutter_text.ellipsize = Pango.EllipsizeMode.NONE; this._description.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
this._description.clutter_text.line_wrap = true; this._description.clutter_text.line_wrap = true;