fuel log list ui updates
This commit is contained in:
parent
00d6d89fcb
commit
76f850e256
|
@ -21,7 +21,13 @@ struct FuelLogSummaryView: View {
|
|||
var distanceSincePrevious: Double?
|
||||
|
||||
var body: some View {
|
||||
|
||||
|
||||
VStack(alignment: .leading, spacing: 2) {
|
||||
Rectangle()
|
||||
.fill(Color.gray)
|
||||
.frame(height: 2)
|
||||
|
||||
// Row 1: Date and MPG (if available)
|
||||
HStack {
|
||||
Text(log.date ?? Date(), formatter: dateFormatter)
|
||||
|
@ -36,8 +42,8 @@ struct FuelLogSummaryView: View {
|
|||
}
|
||||
}
|
||||
.padding(2)
|
||||
.background(Color.blue)
|
||||
.cornerRadius(10)
|
||||
// .background(Color.accentColor)
|
||||
.cornerRadius(4)
|
||||
|
||||
Divider()
|
||||
// Row 2: Distance (instead of odometer) and Fuel Volume
|
||||
|
@ -81,6 +87,9 @@ struct FuelLogSummaryView: View {
|
|||
.bold()
|
||||
}
|
||||
}
|
||||
Rectangle()
|
||||
.fill(Color.gray)
|
||||
.frame(height: 2)
|
||||
}
|
||||
.padding(8)
|
||||
.background(Color(.secondarySystemBackground))
|
||||
|
|
Loading…
Reference in New Issue