summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2023-10-02 08:44:47 -0400
committerLoren Burkholder <computersemiexpert@outlook.com>2023-10-02 10:41:38 -0400
commit79a47ff9c267cf64c692b223aebbb704201a6e16 (patch)
tree725ee19b29137ee97f94b66138a5573fe659bb4d /resources
parentMerge pull request #1573 from Nheko-Reborn/fixqml (diff)
downloadnheko-79a47ff9c267cf64c692b223aebbb704201a6e16.tar.xz
Fix powerlevel indicator size in the timeline
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: {