Skip to content

Commit 156eefe

Browse files
committed
Give both text and buttons width at least 300px based on 320px minimum device width for current iOS devices.
1 parent 8ae5ba5 commit 156eefe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WooCommerce/Classes/POS/TabBar/POSIneligibleView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct POSIneligibleView: View {
3434
.foregroundColor(Color.posOnSurface)
3535
}
3636
.containerRelativeFrame(.horizontal) { length, _ in
37-
length * 0.5
37+
max(length * 0.5, 300)
3838
}
3939

4040
Spacer()
@@ -66,7 +66,7 @@ struct POSIneligibleView: View {
6666
.buttonStyle(POSOutlinedButtonStyle(size: .normal))
6767
}
6868
.containerRelativeFrame(.horizontal) { length, _ in
69-
length * 0.5 - 132
69+
max(length * 0.5 - 132, 300)
7070
}
7171
}
7272

0 commit comments

Comments
 (0)