Limit the max height of images inside CustomButton

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-05-19 22:38:09 +08:00 committed by Matthieu Gallien
parent 97904d3b20
commit ea43ebfe91

View 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