[frameworks/kirigami] src/forms/templates: Same default width that kirigami-addons form has
Marco Martin <[email protected]> Wed, 5 Aug 2026 09:08:21 +0000 (UTC)
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 93c732f98c6cfa207e980238fe4842d516579785 by Marco Martin.
Committed on 04/08/2026 at 08:33.
Pushed by mart into branch 'master'.
Same default width that kirigami-addons form has
also in kirigami-addons the form components have a default width of 30 gridunits if not further constrained
M +1 -1 src/forms/templates/Form.qml
https://invent.kde.org/frameworks/kirigami/-/commit/93c732f98c6cfa207e980238fe4842d516579785
diff --git a/src/forms/templates/Form.qml b/src/forms/templates/Form.qml
index 371d76649..50d2c2544 100644
--- a/src/forms/templates/Form.qml
+++ b/src/forms/templates/Form.qml
@@ -120,7 +120,7 @@ Item {
width: root.__collapsed
? Math.min(implicitWidth, parent.width, Platform.Units.gridUnit * 30)
- : Math.min(Math.max(implicitWidth, twinImplicitWidth), parent.width)
+ : Math.min(Math.max(implicitWidth, Platform.Units.gridUnit * 30, twinImplicitWidth), parent.width)
spacing: Platform.Units.largeSpacing + Platform.Units.smallSpacing
}
}