Commit 19d01b52 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Better use of AbstractCard

Place in the contentItem the delegate, so it's centered.
Don't override margins from the delegate
parent 29a1228f
......@@ -42,9 +42,8 @@ Kirigami.AbstractCard
highlighted: ListView.isCurrentItem
Keys.onReturnPressed: trigger()
onClicked: trigger()
rightPadding: Kirigami.Units.largeSpacing
header: Item {
contentItem: Item {
implicitHeight: Math.max(conts.implicitHeight, resourceIcon.height)
Kirigami.Icon {
......@@ -56,7 +55,6 @@ Kirigami.AbstractCard
anchors {
verticalCenter: parent.verticalCenter
left: parent.left
leftMargin: Kirigami.Units.smallSpacing
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment