Skip to content

Commit

Permalink
Show leading padding on cart items when no image
Browse files Browse the repository at this point in the history
  • Loading branch information
joshheald committed Jan 31, 2025
1 parent f049a8e commit 8caf60e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WooCommerce/Classes/POS/Presentation/ItemRowView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ struct ItemRowView: View {
.font(Constants.itemPriceFont)
}
.frame(maxWidth: .infinity, alignment: .leading)
.padding(.leading, showProductImage ? 0 : Constants.horizontalElementSpacing)
.accessibilityElement(children: .combine)

if let onItemRemoveTapped {
Expand Down Expand Up @@ -59,8 +60,7 @@ struct ItemRowView: View {
@ViewBuilder
private var productImage: some View {
if !showProductImage {
Spacer()
.frame(width: Constants.horizontalElementSpacing)
EmptyView()
} else if let imageSource = cartItem.item.productImageSource {
ProductImageThumbnail(productImageURL: URL(string: imageSource),
productImageSize: Constants.productCardSize,
Expand Down

0 comments on commit 8caf60e

Please sign in to comment.