From e86c5d716355e62e00a8ec4f10dd7ecdc73cdf70 Mon Sep 17 00:00:00 2001 From: miruka Date: Thu, 19 Mar 2020 03:52:00 -0400 Subject: [PATCH] Fix "loading past messages" busy indicator width --- src/gui/Base/HButtonContent.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/Base/HButtonContent.qml b/src/gui/Base/HButtonContent.qml index 1c95a870..83e28170 100644 --- a/src/gui/Base/HButtonContent.qml +++ b/src/gui/Base/HButtonContent.qml @@ -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