diff --git a/resources/qml/ImageButton.qml b/resources/qml/ImageButton.qml index 60954bfd..b5d9c152 100644 --- a/resources/qml/ImageButton.qml +++ b/resources/qml/ImageButton.qml @@ -26,6 +26,7 @@ AbstractButton { // Workaround, can't get icon.source working for now... anchors.fill: parent source: image != "" ? ("image://colorimage/" + image + "?" + ((button.hovered && changeColorOnHover) ? highlightColor : buttonTextColor)) : "" + fillMode: Image.PreserveAspectFit } CursorShape { diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml index 92073a37..76680b37 100644 --- a/resources/qml/RoomList.qml +++ b/resources/qml/RoomList.qml @@ -543,7 +543,7 @@ Page { anchors.margins: Nheko.paddingMedium ImageButton { - Layout.alignment: Qt.AlignBottom | Qt.AlignLeft + Layout.fillWidth: true hoverEnabled: true width: 22 height: 22 @@ -572,7 +572,7 @@ Page { ImageButton { visible: !collapsed - Layout.alignment: Qt.AlignBottom | Qt.AlignHCenter + Layout.fillWidth: true hoverEnabled: true width: 22 height: 22 @@ -584,7 +584,7 @@ Page { ImageButton { visible: !collapsed - Layout.alignment: Qt.AlignBottom | Qt.AlignRight + Layout.fillWidth: true hoverEnabled: true width: 22 height: 22