Skip to content

Commit e5290a6

Browse files
authored
Merge pull request #703 from Syn-McJ/fix/send-ui-issues
fix: compact UI for SE 1st gen
2 parents 11299c6 + d8fb3d1 commit e5290a6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

DashWallet/Sources/UI/Payment Controller/Enter Amount/ProvideAmountViewController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ final class ProvideAmountViewController: SendAmountViewController {
6969

7070
let stackView = UIStackView()
7171
stackView.axis = .vertical
72-
stackView.spacing = 26
72+
stackView.spacing = UIDevice.isIphone5OrLess ? 10 : 26
7373
stackView.translatesAutoresizingMaskIntoConstraints = false
7474
contentView.addSubview(stackView)
7575

@@ -107,10 +107,10 @@ final class ProvideAmountViewController: SendAmountViewController {
107107
stackView.addArrangedSubview(amountView)
108108

109109
NSLayoutConstraint.activate([
110-
stackView.topAnchor.constraint(equalTo: contentView.topAnchor, constant: 10),
110+
stackView.topAnchor.constraint(equalTo: contentView.topAnchor, constant: UIDevice.isIphone5OrLess ? 0 : 10),
111111
stackView.leadingAnchor.constraint(equalTo: contentView.layoutMarginsGuide.leadingAnchor),
112112
stackView.trailingAnchor.constraint(equalTo: contentView.layoutMarginsGuide.trailingAnchor),
113-
swiftUIController.view.heightAnchor.constraint(equalToConstant: 100)
113+
swiftUIController.view.heightAnchor.constraint(equalToConstant: UIDevice.isIphone5OrLess ? 84 : 100)
114114
])
115115
}
116116

DashWallet/Sources/UI/Views/SharedViews/Keyboard/NumberKeyboard.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ extension NumberKeyboard {
170170
extension NumberKeyboard {
171171
enum Style {
172172
static let padding: CGFloat = 5
173-
static let buttonHeight: CGFloat = 50
173+
static let buttonHeight: CGFloat = UIDevice.isIphone5OrLess ? 45 : 50
174174
static let buttonMaxWidth: CGFloat = 115
175175
static let rowsCount: UInt = 4
176176
static let sectionsCount = 3

0 commit comments

Comments
 (0)