diff --git a/Modules/Settings/Controls/HyprTimeInput.qml b/Modules/Settings/Controls/HyprTimeInput.qml index 4723def..661fda9 100644 --- a/Modules/Settings/Controls/HyprTimeInput.qml +++ b/Modules/Settings/Controls/HyprTimeInput.qml @@ -98,9 +98,11 @@ Item { CustomText { Layout.alignment: Qt.AlignLeft + Layout.preferredWidth: Math.min(contentWidth, optionLayout.x - Appearance.spacing.normal) color: DynamicColors.palette.m3onSurfaceVariant font.pointSize: Appearance.font.size.normal text: qsTr("Hyprsunset will turn on at %1, and turn off at %2.").arg(root.startTime).arg(root.endTime) + wrapMode: Text.WordWrap } } @@ -108,7 +110,7 @@ Item { id: optionLayout Layout.fillHeight: true - Layout.preferredWidth: childrenRect.width + Layout.fillWidth: true RowLayout { CustomText { diff --git a/Modules/Settings/Controls/TimeInput.qml b/Modules/Settings/Controls/TimeInput.qml index b77f794..10c937d 100644 --- a/Modules/Settings/Controls/TimeInput.qml +++ b/Modules/Settings/Controls/TimeInput.qml @@ -98,9 +98,11 @@ Item { CustomText { Layout.alignment: Qt.AlignLeft + Layout.preferredWidth: Math.min(contentWidth, optionLayout.x - Appearance.spacing.normal) color: DynamicColors.palette.m3onSurfaceVariant font.pointSize: Appearance.font.size.normal text: qsTr("Dark mode will turn on at %1, and turn off at %2.").arg(root.startTime).arg(root.endTime) + wrapMode: Text.WordWrap } } @@ -108,7 +110,7 @@ Item { id: optionLayout Layout.fillHeight: true - Layout.preferredWidth: childrenRect.width + Layout.fillWidth: true RowLayout { CustomText {