Narrow weather flyout and center forecast row
This commit is contained in:
@@ -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 {
|
||||
@@ -391,3 +396,4 @@ Item {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user