From 03af1da1d40777fc551bab6bcae6804711d685f0 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 17 Jul 2020 06:24:03 -0400 Subject: [PATCH] Remove power level apply/cancel button texts Lazy fix for the layout problem --- TODO.md | 1 - src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TODO.md b/TODO.md index c12e24a7..93b5324f 100644 --- a/TODO.md +++ b/TODO.md @@ -4,7 +4,6 @@ - fix members not synced bug - fix local unread counters order -- fix power level control button layout when apply button is loading - publish room or alias control diff --git a/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml b/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml index f964eb86..ad33787f 100644 --- a/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml +++ b/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml @@ -219,11 +219,10 @@ HListView { } } - AutoDirectionLayout { + HRowLayout { visible: scale > 0 id: buttonsLayout scale: powerLevel.item.changed ? 1 : 0 - rowSpacing: powerLevel.spacing Layout.preferredWidth: parent.width Layout.preferredHeight: implicitHeight * scale @@ -237,6 +236,7 @@ HListView { id: applyButton enabled: ! powerLevel.item.fieldOverMaximum loading: setPowerFuture !== null + text: "" onClicked: { setPowerFuture = py.callClientCoro( userId, @@ -251,6 +251,7 @@ HListView { } CancelButton { + text: "" onClicked: { setPowerFuture.cancel() setPowerFuture = null