From 79a47ff9c267cf64c692b223aebbb704201a6e16 Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Mon, 2 Oct 2023 08:44:47 -0400 Subject: Fix powerlevel indicator size in the timeline --- resources/qml/MessageView.qml | 6 ++++-- resources/qml/components/PowerlevelIndicator.qml | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'resources') 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: { -- cgit 1.4.1