Skip to content

Commit e39b974

Browse files
committed
Conditionally distribute shipment destination address content
1 parent af18a24 commit e39b974

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShippingCreateLabelsView.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,10 +412,17 @@ private extension WooShippingCreateLabelsView {
412412

413413
/// View showing the destination ("Ship To") address.
414414
var shipToAddress: some View {
415-
HStack(alignment: .firstTextBaseline, spacing: Layout.bottomSheetSpacing) {
415+
AdaptiveStack(
416+
horizontalAlignment: .leading,
417+
verticalAlignment: .firstTextBaseline,
418+
spacing: Layout.bottomSheetSpacing
419+
) {
416420
Text(Localization.BottomSheet.shipTo)
417421
.frame(width: shipmentDetailsShipFromSize.width, alignment: .leading)
418-
VStack(alignment: .leading) {
422+
VStack(
423+
alignment: .leading,
424+
spacing: Layout.verticalSpacing
425+
) {
419426
if let addressLines = viewModel.destinationAddressLines {
420427
AddressLinesView(addressLines: addressLines)
421428
}

0 commit comments

Comments
 (0)