Преглед изворни кода

Fix image sizing and positioning in NCButtonContents

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Claudio Cambra пре 2 година
родитељ
комит
c881a2211d
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/gui/tray/NCButtonContents.qml

+ 2 - 1
src/gui/tray/NCButtonContents.qml

@@ -36,8 +36,9 @@ RowLayout {
     Image {
         id: icon
 
-        Layout.fillWidth: !buttonLabel.visible
+        Layout.maximumWidth: root.height
         Layout.maximumHeight: root.height
+        Layout.alignment: Qt.AlignCenter
 
         source: root.hovered ? root.imageSourceHover : root.imageSource