fix an issue where copy is cut off on small devices

pull/891/head
Ryan ZHAO 10 months ago
parent 1726930e2e
commit 16f47d4f87

@ -328,8 +328,7 @@ final class HomeVC: BaseVC, LibSessionRespondingViewController, UITableViewDataS
// Empty state view
view.addSubview(emptyStateStackView)
emptyStateStackView.pin(.leading, to: .leading, of: view, withInset: Values.accountCreatedViewHorizontalOffset)
emptyStateStackView.pin(.trailing, to: .trailing, of: view, withInset: -Values.accountCreatedViewHorizontalOffset)
emptyStateStackView.set(.width, to: 300)
emptyStateStackView.center(.horizontal, in: view)
let verticalCenteringConstraint2 = emptyStateStackView.center(.vertical, in: view)
verticalCenteringConstraint2.constant = -Values.massiveSpacing // Makes things appear centered visually

@ -49,7 +49,6 @@ public enum Values {
public static let veryLargeSpacing = CGFloat(35)
public static let massiveSpacing = CGFloat(64)
public static let onboardingButtonBottomOffset = isIPhone5OrSmaller ? CGFloat(52) : CGFloat(72)
public static let accountCreatedViewHorizontalOffset = isIPhone6OrSmaller ? CGFloat(24) : CGFloat(50)
// MARK: - iPad Sizes
public static let iPadModalWidth = UIScreen.main.bounds.width / 2

Loading…
Cancel
Save