Skip to content

Commit 74cc5e9

Browse files
committed
Make package empty state content wrap lines
1 parent e39b974 commit 74cc5e9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Package and Rate Selection/WooCarrierPackagesSelectionView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,13 @@ private extension WooCarrierPackagesSelectionView {
202202
Text(Localization.emptyStateMessage)
203203
.multilineTextAlignment(.center)
204204
.bold()
205+
.fixedSize(horizontal: false, vertical: true)
206+
.padding(.horizontal)
205207
Button(Localization.createCustomPackageCTA) {
206208
addingCustomPackageHandler()
207209
}
208210
.buttonStyle(PrimaryButtonStyle())
211+
.fixedSize(horizontal: false, vertical: true)
209212
.padding(.horizontal, Layout.ctaPadding)
210213
Spacer()
211214
}

WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Package and Rate Selection/WooSavedPackagesSelectionView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,12 @@ private extension WooSavedPackagesSelectionView {
205205
Text(Localization.emptyStateMessage)
206206
.multilineTextAlignment(.center)
207207
.bold()
208+
.fixedSize(horizontal: false, vertical: true)
208209
Button(Localization.createCustomPackageCTA) {
209210
addingCustomPackageHandler()
210211
}
211212
.buttonStyle(PrimaryButtonStyle())
213+
.fixedSize(horizontal: false, vertical: true)
212214
.padding(.horizontal, Layout.ctaPadding)
213215
Spacer()
214216
}

0 commit comments

Comments
 (0)