Zero top padding is fine when there's only a summary label, but looks
bad when there's body text, an icon, or both. Correct that.
(cherry picked from commit
53b6289f84094d91745b79c3bc902e7f80f235ef)
Co-authored-by: Nate Graham <nate@kde.org>
Gbp-Pq: Name improve_paddings.patch
Components.Summary {
id: summary
+ // Base layout intentionally has no row spacing, so add top padding here when needed
+ Layout.topMargin: delegateRoot.hasBodyText || icon.visible ? Kirigami.Units.smallSpacing : 0
Layout.fillWidth: true
Layout.row: 2
Layout.column: delegateRoot.__firstColumn
Components.Icon {
id: icon
- // We removed the row spacing from the base layout, so re-add it just here
+ // Base layout intentionally has no row spacing, so add top padding here
Layout.topMargin: Kirigami.Units.smallSpacing
Layout.row: 2
Layout.column: delegateRoot.__firstColumn + 1