set static height for homescreen graph

home screen graph start at zero
This commit is contained in:
Trey t
2022-01-22 16:27:55 -06:00
parent 7322151595
commit 8648a8f834
2 changed files with 10 additions and 9 deletions

View File

@@ -176,11 +176,11 @@ struct ContentView: View {
viewModel.add(mood: mood, forDate: date)
}
})
.frame(minHeight: 85, maxHeight: 180)
.frame(height: 180)
.frame(minWidth: 0, maxWidth: .infinity)
} else {
HeaderStatsView(fakeData: false, backDays: 30)
.frame(minHeight: 85, maxHeight: 180)
.frame(height: 180)
// should match backDays above
Text("Past \(30) days")
.font(.body)