summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/MessageView.qml6
-rw-r--r--resources/qml/components/PowerlevelIndicator.qml2
2 files changed, 4 insertions, 4 deletions
diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml
index a0ff0ff1..894e58b4 100644
--- a/resources/qml/MessageView.qml
+++ b/resources/qml/MessageView.qml
@@ -570,9 +570,11 @@ Item {
 
                         PowerlevelIndicator {
                             id: powerlevelIndicator
-                            anchors.left: parent.left
-                            //anchors.horizontalCenter: parent.horizontalCenter
 
+                            anchors.left: parent.left
+                            anchors.verticalCenter: parent.verticalCenter
+                            height: fontMetrics.ascent
+                            width: height
                             powerlevel: userPowerlevel
                             permissions: room ? room.permissions : null
                             visible: isAdmin || isModerator
diff --git a/resources/qml/components/PowerlevelIndicator.qml b/resources/qml/components/PowerlevelIndicator.qml
index 4b826284..6a6d89af 100644
--- a/resources/qml/components/PowerlevelIndicator.qml
+++ b/resources/qml/components/PowerlevelIndicator.qml
@@ -23,8 +23,6 @@ Image {
             return "image://colorimage/:/icons/icons/ui/person.svg?";
     }
 
-    sourceSize.width: 16
-    sourceSize.height: 16
     source: sourceUrl + (ma.hovered ? palette.highlight : palette.buttonText)
     ToolTip.visible: ma.hovered
     ToolTip.text: {