[gnome-shell/gnome-41] messageList: Center-align close button vertically



commit 34716eb1d5905c24ae04a5163d99fe3f9031d931
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Mar 25 17:11:28 2022 +0100

    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>
    (cherry picked from commit 421591359ff21ba3c21cce0513d676c105e0e7e4)

 js/ui/messageList.js | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/js/ui/messageList.js b/js/ui/messageList.js
index 77672a5928..eb65596d69 100644
--- a/js/ui/messageList.js
+++ b/js/ui/messageList.js
@@ -358,6 +358,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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]