Skip to content

Commit 9debaed

Browse files
committed
Use padding before rounder corners
1 parent 9e3ed9c commit 9debaed

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

WooCommerce/Classes/Authentication/Epilogue/StorePickerError.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ struct StorePickerError: View {
4747
}
4848
.buttonStyle(LinkButtonStyle())
4949
}
50+
.padding()
5051
.background(Color(.basicBackground))
5152
.cornerRadius(10)
52-
.padding()
5353
}
5454
}
5555

@@ -73,7 +73,11 @@ private extension StorePickerError {
7373

7474
struct StorePickerError_Preview: PreviewProvider {
7575
static var previews: some View {
76-
StorePickerError()
77-
.previewLayout(.sizeThatFits)
76+
VStack {
77+
StorePickerError()
78+
}
79+
.padding()
80+
.background(Color.gray)
81+
.previewLayout(.sizeThatFits)
7882
}
7983
}

0 commit comments

Comments
 (0)