From d9c4d9818b8cb50df84000eb9b6abd216b11ba04 Mon Sep 17 00:00:00 2001 From: Oversword Date: Thu, 9 Jun 2022 14:37:38 +0100 Subject: [PATCH] Fix power item display --- slice/LoopListPowerItem.qml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/slice/LoopListPowerItem.qml b/slice/LoopListPowerItem.qml index 506d94f..2c95f3d 100644 --- a/slice/LoopListPowerItem.qml +++ b/slice/LoopListPowerItem.qml @@ -70,7 +70,8 @@ Item Rectangle { - x: itemRoot.width + textBoxMargin + id: textBackground + x: itemRoot.height + textBoxMargin width: parent.width - x height: itemRoot.height color: ( hover ? colors.textBgHover : colors.textBg ) @@ -81,19 +82,19 @@ Item id: descriptionLabel text: itemRoot.title color: ( hover ? colors.textHover : colors.text ) - width: parent.width - descriptionLabel.height + 10 - 2 - 24 + width: parent.width - x - textBoxPaddingRight font: fonts.listItemMed elide: Text.ElideRight - x: descriptionLabel.height + 10 + 12 - y: 5 + x: textBackground.x + textBoxPaddingLeft + y: textBoxPaddingTop } MouseArea { - width: descriptionLabel.x + descriptionLabel.width - height: descriptionLabel.height + 10 + width: itemRoot.width + height: itemRoot.height hoverEnabled: true onClicked: itemRoot.clicked()