Narrow weather flyout and center forecast row

This commit is contained in:
Ryan Hughes
2026-05-16 00:41:41 -04:00
parent 079be0a1a7
commit fd36836eec
@@ -179,7 +179,7 @@ Item {
bar: root.bar
open: root.popupOpen
triggerMode: "click"
contentWidth: 520
contentWidth: 440
contentHeight: card.implicitHeight + 28
Column {
@@ -334,10 +334,16 @@ Item {
}
// ---- Forecast row: each cell has the day icon left of a day-name + hi/lo column.
Row {
id: forecastRow
// Wrapped in an Item so the block of cells can be centered within the popup.
Item {
visible: root.forecastDays.length > 0
width: parent.width
height: forecastRow.height
Row {
id: forecastRow
anchors.horizontalCenter: parent.horizontalCenter
spacing: 44
Repeater {
model: root.forecastDays
@@ -345,7 +351,6 @@ Item {
Row {
required property var modelData
required property int index
width: forecastRow.width / Math.max(1, root.forecastDays.length)
spacing: 10
Text {
@@ -390,4 +395,5 @@ Item {
}
}
}
}
}