File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
WooCommerce/Classes/Bookings/BookingList Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -143,16 +143,16 @@ private extension BookingListView {
143143 }
144144
145145 func bookingItem( _ booking: Booking ) -> some View {
146- VStack ( alignment: . leading) {
147- Text ( booking. startDate. toString ( dateStyle: . short,
148- timeStyle: . short,
149- timeZone: BookingListTab . utcTimeZone) )
146+ VStack ( alignment: . leading, spacing: BookingListViewLayout . bookingSummaryBadgeSpacing) {
147+ VStack ( alignment: . leading, spacing: BookingListViewLayout . bookingSummarySpacing) {
148+ Text ( booking. startDate. toString ( dateStyle: . short,
149+ timeStyle: . short,
150+ timeZone: BookingListTab . utcTimeZone) )
150151 . font ( . body)
151152 . fontWeight ( . medium)
152153 . frame ( maxWidth: . infinity, alignment: . leading)
153154 . foregroundStyle ( Color . primary)
154155
155- VStack ( alignment: . leading) {
156156 if let productName = booking. productName {
157157 Text ( productName)
158158 . font ( . footnote)
@@ -258,6 +258,8 @@ fileprivate enum BookingListViewLayout {
258258 static let emptyStateImageWidth : CGFloat = 67
259259 static let cornerRadius : CGFloat = 8
260260 static let defaultHeaderHeight : CGFloat = 98
261+ static let bookingSummarySpacing : CGFloat = 2
262+ static let bookingSummaryBadgeSpacing : CGFloat = 8
261263}
262264
263265fileprivate enum BookingListViewLocalization {
You can’t perform that action at this time.
0 commit comments