From 8fedd7612d33164e2519d6d03ee7440fad707fb4 Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Fri, 5 Sep 2025 17:06:09 -0400 Subject: [PATCH] NToast: Column => ColumnLayout --- Widgets/NToast.qml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Widgets/NToast.qml b/Widgets/NToast.qml index 079bd3c..ddcf69a 100644 --- a/Widgets/NToast.qml +++ b/Widgets/NToast.qml @@ -90,7 +90,6 @@ Item { // Main toast container Rectangle { - id: container anchors.fill: parent radius: Style.radiusL * scaling @@ -146,37 +145,33 @@ Item { } // Label and description - Column { - id: textColumn + ColumnLayout { spacing: Style.marginXXS * scaling Layout.fillWidth: true Layout.alignment: Qt.AlignVCenter NText { - id: labelText + Layout.fillWidth: true text: root.label color: Color.mOnSurface font.pointSize: Style.fontSizeM * scaling font.weight: Style.fontWeightBold wrapMode: Text.WordWrap - width: parent.width visible: text.length > 0 } NText { - id: descriptionText + Layout.fillWidth: true text: root.description color: Color.mOnSurface font.pointSize: Style.fontSizeM * scaling wrapMode: Text.WordWrap - width: parent.width visible: text.length > 0 } } // Close button (only if persistent or manual dismiss needed) NIconButton { - id: closeButton icon: "close" visible: root.persistent || root.duration === 0