Limit the max height of images inside CustomButton
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Fri, 19 May 2023 14:38:09 +0000 (22:38 +0800)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Tue, 30 May 2023 08:40:51 +0000 (08:40 +0000)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/tray/NCButtonContents.qml

index c6fc57029786d9db99fec7a4748c255f405956ab..4247481b6be4171114d00807ca58f8bc6a1be7b7 100644 (file)
@@ -35,6 +35,7 @@ RowLayout {
         id: icon
 
         Layout.fillWidth: !buttonLabel.visible
+        Layout.maximumHeight: root.height
 
         source: root.hovered ? root.imageSourceHover : root.imageSource
         fillMode: Image.PreserveAspectFit