Commit 5a96d6b1 authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Added minimum width to tag labels to prevent background borkage. Fixes #50

parent 0fa5b617
Pipeline #92064 passed with stage
in 4 minutes and 40 seconds
......@@ -77,9 +77,10 @@ Item {
anchors.fill: parent
QQC2.Label {
id: label
horizontalAlignment: Qt.AlignLeft
verticalAlignment: Qt.AlignVCenter
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
Layout.fillWidth: true
Layout.minimumWidth: Kirigami.Units.gridUnit * 1.5
Layout.leftMargin: borderCover.anchors.leftMargin
Layout.rightMargin: tagRoot.showAction ? 0 : Kirigami.Units.smallSpacing
Layout.topMargin: tagRoot.showAction ? 0 : Kirigami.Units.smallSpacing
......@@ -90,8 +91,9 @@ Item {
}
Kirigami.Heading {
id: heading
horizontalAlignment: Qt.AlignLeft
verticalAlignment: Qt.AlignVCenter
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
Layout.minimumWidth: Kirigami.Units.gridUnit * 1.5
Layout.fillWidth: true
Layout.leftMargin: borderCover.anchors.leftMargin
Layout.topMargin: Kirigami.Units.smallSpacing
......
Markdown is supported
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