[frameworks/kirigami] src/forms/cards: FormEntry: items don't fill the width by default

Marco Martin <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 23996dff59b7457748f9e55b21f0586220fd350d by Marco Martin.
Committed on 03/08/2026 at 16:17.
Pushed by mart into branch 'master'.

FormEntry: items don't fill the width by default

Don't stretch by default form items in FormEntry: only those that have
Layout.fillWidth: true set

M  +2    -1    src/forms/cards/FormEntry.qml

https://invent.kde.org/frameworks/kirigami/-/commit/23996dff59b7457748f9e55b21f0586220fd350d

diff --git a/src/forms/cards/FormEntry.qml b/src/forms/cards/FormEntry.qml
index ca5c213ea..ab1e3a612 100644
--- a/src/forms/cards/FormEntry.qml
+++ b/src/forms/cards/FormEntry.qml
@@ -145,7 +145,8 @@ FT.FormEntry {
                 rightPadding: 0
                 topPadding: 0
                 bottomPadding: 0
-                Layout.fillWidth: true
+                Layout.fillWidth: root.contentItem.Layout.fillWidth
+
                 Layout.alignment: Qt.AlignVCenter
                 visible: contentItem
                 contentItem: root.contentItem
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.