[frameworks/kirigami] src/forms/cards: FormEntry/FormAction (cards): fix items alignments

Marco Martin <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 102072bc979c89e47f6277b54b378821d20697e5 by Marco Martin.
Committed on 06/08/2026 at 13:49.
Pushed by mart into branch 'master'.

FormEntry/FormAction (cards): fix items alignments

always align all trailingITems on the right and align the FormAction label to the left

M  +1    -0    src/forms/cards/FormAction.qml
M  +1    -0    src/forms/cards/FormEntry.qml

https://invent.kde.org/frameworks/kirigami/-/commit/102072bc979c89e47f6277b54b378821d20697e5

diff --git a/src/forms/cards/FormAction.qml b/src/forms/cards/FormAction.qml
index f7cc7bd70..cfd08a1eb 100644
--- a/src/forms/cards/FormAction.qml
+++ b/src/forms/cards/FormAction.qml
@@ -26,6 +26,7 @@ FT.FormAction {
     }
 
     contentItem: QQC.Label {
+        Layout.fillWidth: true
         text: root.action.text
     }
 }
diff --git a/src/forms/cards/FormEntry.qml b/src/forms/cards/FormEntry.qml
index 89f4df906..da4c2e93f 100644
--- a/src/forms/cards/FormEntry.qml
+++ b/src/forms/cards/FormEntry.qml
@@ -162,6 +162,7 @@ FT.FormEntry {
                 id: trailingItems
                 Layout.rowSpan: subtitleLabel.visible ? 2 : 1
                 Layout.minimumWidth: visible ? implicitWidth : 0
+                Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
                 visible: children.length > 0 && width > 0
                 spacing: Platform.Units.smallSpacing
                 children: root.trailingItems
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.