Skip to content

Commit 2799344

Browse files
committed
Use constant for spacing between top HStack and content VStack.
1 parent 71ce98d commit 2799344

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WooCommerce/Classes/ViewRelated/Inbox/InboxNoteRow.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ struct InboxNoteRow: View {
1010

1111
var body: some View {
1212
VStack(spacing: 0) {
13-
VStack(alignment: .leading, spacing: 0) {
13+
VStack(alignment: .leading, spacing: Constants.spacingBetweenTopHStackAndContentVStack) {
1414
// HStack with type icon and relative date.
1515
HStack {
1616
Circle()
@@ -87,6 +87,7 @@ private extension InboxNoteRow {
8787

8888
enum Constants {
8989
static let spacingBetweenActions: CGFloat = 16
90+
static let spacingBetweenTopHStackAndContentVStack: CGFloat = 8
9091
static let verticalSpacing: CGFloat = 14
9192
static let defaultPadding: CGFloat = 16
9293
static let dividerHeight: CGFloat = 1

0 commit comments

Comments
 (0)