소스 검색

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