fix text wrapping on time input components
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 11s
Python / lint-format (pull_request) Successful in 22s
Python / test (pull_request) Successful in 34s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m21s

This commit is contained in:
2026-06-08 18:17:13 +02:00
parent c0202ef015
commit ea911996a8
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -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 {
+3 -1
View File
@@ -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 {