Skip to content

Commit

Permalink
Wrap long text in ETP message in action sheet popup (#6869)
Browse files Browse the repository at this point in the history
* Adjust font size for long test

* Changed the max number of lines to 2 for photon action sheet

Co-authored-by: Nishant Bhasin <[email protected]>
  • Loading branch information
joeyg and nbhasin2 authored Jul 14, 2020
1 parent dbc0ea2 commit 0104534
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class PhotonActionSheetCell: UITableViewCell {
titleLabel.textColor = UIColor.theme.tableView.rowText
titleLabel.textColor = action.accessory == .Text ? titleLabel.textColor.withAlphaComponent(0.6) : titleLabel.textColor
titleLabel.adjustsFontSizeToFitWidth = false
titleLabel.numberOfLines = 1
titleLabel.numberOfLines = 2
titleLabel.lineBreakMode = .byTruncatingTail
titleLabel.minimumScaleFactor = 0.5

Expand Down

0 comments on commit 0104534

Please sign in to comment.