Fix: text and button overlap on smaller devices in screen prompting to elevate key security

pull/1593/head
Hwee-Boon Yar 5 years ago
parent 9f17b9d0c1
commit 95f1af35c7
  1. 2
      AlphaWallet/Wallet/ViewControllers/ElevateWalletSecurityViewController.swift
  2. 6
      AlphaWallet/Wallet/ViewModels/ElevateWalletSecurityViewModel.swift

@ -45,7 +45,7 @@ class ElevateWalletSecurityViewController: UIViewController {
subtitleLabel,
UIView.spacer(height: 40),
imageView,
UIView.spacer(height: 40),
UIView.spacer(height: ScreenChecker().isNarrowScreen ? 15 : 40),
descriptionLabel,
].asStackView(axis: .vertical)
stackView.translatesAutoresizingMaskIntoConstraints = false

@ -51,7 +51,11 @@ struct ElevateWalletSecurityViewModel {
}
var descriptionFont: UIFont {
return Fonts.regular(size: 20)!
if ScreenChecker().isNarrowScreen {
return Fonts.regular(size: 16)!
} else {
return Fonts.regular(size: 20)!
}
}
var cancelLockingButtonFont: UIFont {

Loading…
Cancel
Save