messageList: Center-align close button vertically

Otherwise it may end up stretched when using larger text.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2257>
This commit is contained in:
Florian Müllner 2022-03-25 17:11:28 +01:00 committed by Marge Bot
parent 8ba7f0f4a9
commit 421591359f

View File

@ -369,6 +369,7 @@ var Message = GObject.registerClass({
this._closeButton = new St.Button({
style_class: 'message-close-button',
child: closeIcon, opacity: 0,
y_align: Clutter.ActorAlign.CENTER,
});
titleBox.add_actor(this._closeButton);