summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-08-10 10:15:12 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-08-10 10:15:12 +0200
commita6b732caf0e99f4dd832df52eb58832488e33f73 (patch)
tree4dd845d373b3136ba8d268c7f9a533c04cdc5f1f
parentMerge remote-tracking branch 'origin/powerlevelsInTimeline' (diff)
downloadnheko-a6b732caf0e99f4dd832df52eb58832488e33f73.tar.xz
Swap PL indicator location
-rw-r--r--resources/qml/MessageView.qml20
1 files changed, 12 insertions, 8 deletions
diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml
index 5768a7a6..a0ff0ff1 100644
--- a/resources/qml/MessageView.qml
+++ b/resources/qml/MessageView.qml
@@ -564,14 +564,25 @@ Item {
 
                         target: room
                     }
+
                     AbstractButton {
                         id: userNameButton
 
+                        PowerlevelIndicator {
+                            id: powerlevelIndicator
+                            anchors.left: parent.left
+                            //anchors.horizontalCenter: parent.horizontalCenter
+
+                            powerlevel: userPowerlevel
+                            permissions: room ? room.permissions : null
+                            visible: isAdmin || isModerator
+                        }
+
                         ToolTip.delay: Nheko.tooltipDelay
                         ToolTip.text: userId
                         ToolTip.visible: hovered
+                        leftPadding: powerlevelIndicator.visible ? 16 : 0
                         leftInset: 0
-                        leftPadding: 0
                         rightInset: 0
                         rightPadding: 0
 
@@ -627,13 +638,6 @@ Item {
                             target: Presence
                         }
                     }
-
-                    PowerlevelIndicator {
-                        Layout.alignment: Qt.AlignVCenter
-                        powerlevel: userPowerlevel
-                        permissions: room ? room.permissions : null
-                        visible: isAdmin || isModerator
-                    }
                 }
             }
         }