From c28ca9087cbed3e3b00f5ea2b389431cea909327 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Tue, 24 Sep 2024 18:04:29 +0200 Subject: [PATCH] RemoveChildDialog: Don't wrap delegates in FormCard --- src/qml/RemoveChildDialog.qml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/src/qml/RemoveChildDialog.qml b/src/qml/RemoveChildDialog.qml index 07dfd4e0a..7f50f29ab 100644 --- a/src/qml/RemoveChildDialog.qml +++ b/src/qml/RemoveChildDialog.qml @@ -32,20 +32,18 @@ Kirigami.Dialog { onAccepted: parentRoom.removeChild(root.roomId, removeOfficalCheck.checked) - contentItem: FormCard.FormCardPage { - FormCard.FormCard { - Layout.topMargin: Kirigami.Units.largeSpacing - FormCard.FormTextDelegate { - text: i18n("The child %1 will be removed from the space %2", root.displayName, root.parentDisplayName) - textItem.wrapMode: Text.Wrap - } - FormCard.FormCheckDelegate { - id: removeOfficalCheck - visible: root.isDeclaredParent - enabled: root.canSetParent - text: i18n("The current space is the official parent of this room, should this be cleared?") - checked: root.canSetParent - } + contentItem: ColumnLayout { + spacing: 0 + FormCard.FormTextDelegate { + text: i18n("The child %1 will be removed from the space %2", root.displayName, root.parentDisplayName) + textItem.wrapMode: Text.Wrap + } + FormCard.FormCheckDelegate { + id: removeOfficalCheck + visible: root.isDeclaredParent + enabled: root.canSetParent + text: i18n("The current space is the official parent of this room, should this be cleared?") + checked: root.canSetParent } } }