Fix avatar membership icon position in narrow pane

This commit is contained in:
miruka
2020-07-14 17:17:27 -04:00
parent d092cd6506
commit 3ff90d1074
2 changed files with 4 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ HAvatar {
property string displayName
property string presence: ""
property int powerLevel: 0
property bool shiftMembershipIconPosition: true
property int shiftMembershipIconPositionBy: -8
property bool invited: false
readonly property bool admin: powerLevel >= 100
@@ -21,7 +21,7 @@ HAvatar {
active: admin || moderator || invited
anchors.top: parent.top
anchors.left: parent.left
anchors.topMargin: shiftMembershipIconPosition ? -16 / 2 : 0
anchors.topMargin: shiftMembershipIconPositionBy
anchors.leftMargin: anchors.topMargin
z: 100