fix(@StatusListItem): fix left padding

When there is an icon, take it into account when calculating the left
padding
This commit is contained in:
Anthony Laibe 2022-03-02 10:12:12 +01:00 committed by Michał Cieślak
parent ee18ab89dd
commit dcee33a06d
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ Rectangle {
anchors.left: iconOrImage.active ? iconOrImage.right : parent.left
anchors.right: statusListItemLabel.visible ? statusListItemLabel.left : statusListItemComponentsSlot.left
anchors.leftMargin: statusListItem.leftPadding
anchors.leftMargin: iconOrImage.active ? 16 : statusListItem.leftPadding
anchors.rightMargin: statusListItem.rightPadding
anchors.verticalCenter: parent.verticalCenter
height: childrenRect.height