fuel log list ui updates

This commit is contained in:
Kameron Kenny 2025-03-19 23:09:39 -04:00
parent 00d6d89fcb
commit 76f850e256
1 changed files with 11 additions and 2 deletions

View File

@ -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))