Skip to content

Commit 79787c0

Browse files
committed
Adjust calendar spacings
1 parent 65f4379 commit 79787c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

WooCommerce/Classes/ViewRelated/ReusableViews/SwiftUI Components/RangedDatePicker.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ struct RangedDatePicker: View {
4343
DatePicker("", selection: $startDate, in: ...Date(), displayedComponents: [.date])
4444
.datePickerStyle(.graphical)
4545
.accentColor(Color(.brand))
46+
.padding(.horizontal, Layout.calendarPadding)
4647

4748
// End Picker
4849
Text(Localization.endDate)
@@ -54,6 +55,7 @@ struct RangedDatePicker: View {
5455
DatePicker("", selection: $endDate, in: ...Date(), displayedComponents: [.date])
5556
.datePickerStyle(.graphical)
5657
.accentColor(Color(.brand))
58+
.padding(.horizontal, Layout.calendarPadding)
5759
}
5860
.padding()
5961
}
@@ -103,6 +105,7 @@ private extension RangedDatePicker {
103105
}
104106
enum Layout {
105107
static let titleSpacing: CGFloat = 4.0
108+
static let calendarPadding: CGFloat = -8.0
106109
}
107110
}
108111

0 commit comments

Comments
 (0)