Skip to content

Commit 0db372d

Browse files
committed
fix: fixed size of 16x16px on icons
1 parent de7000a commit 0db372d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

WooCommerce/Classes/ViewRelated/Coupons/Add and Edit Coupons/AddEditCoupon.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ struct AddEditCoupon: View {
6969
} label: {
7070
HStack {
7171
Image(uiImage: .plusImage)
72+
.frame(width: Constants.iconSize, height: Constants.iconSize)
7273
Text(Localization.addDescriptionButton)
7374
.bodyStyle()
7475
}
@@ -104,6 +105,7 @@ struct AddEditCoupon: View {
104105
} label: {
105106
HStack {
106107
Image(uiImage: .pencilImage).colorMultiply(Color(.text))
108+
.frame(width: Constants.iconSize, height: Constants.iconSize)
107109
Text(Localization.editProductsButton)
108110
.bodyStyle()
109111
}
@@ -118,6 +120,7 @@ struct AddEditCoupon: View {
118120
HStack {
119121
Image(uiImage: .pencilImage)
120122
.colorMultiply(Color(.text))
123+
.frame(width: Constants.iconSize, height: Constants.iconSize)
121124
Text(Localization.editProductCategoriesButton)
122125
.bodyStyle()
123126
}
@@ -171,6 +174,7 @@ private extension AddEditCoupon {
171174
enum Constants {
172175
static let margin: CGFloat = 16
173176
static let verticalSpacing: CGFloat = 8
177+
static let iconSize: CGFloat = 16
174178
}
175179

176180
enum Localization {

0 commit comments

Comments
 (0)