Fix "loading past messages" busy indicator width

This commit is contained in:
miruka 2020-03-19 03:52:00 -04:00
parent 60fc2ccffc
commit e86c5d7163

View File

@ -24,7 +24,9 @@ HRowLayout {
Item {
visible: button.icon.name || button.loading
Layout.preferredWidth: icon.width
Layout.preferredWidth:
button.loading ? busyIndicator.width : icon.width
Layout.fillHeight: true
Layout.alignment: Qt.AlignCenter
@ -43,6 +45,7 @@ HRowLayout {
}
HBusyIndicator {
id: busyIndicator
width: height
height: parent.height
opacity: button.loading ? 1 : 0