Skip to content

Commit 19b0d7e

Browse files
authored
Merge pull request #5631 from woocommerce/issue/3361-fix-help-link-wrapping
Fix wrapping title of the extra info button in the error screens
2 parents 377e20e + 043835e commit 19b0d7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

WooCommerce/Classes/Authentication/Navigation Exceptions/ULErrorViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ private extension ULErrorViewController {
8686
extraInfoButton.applyLinkButtonStyle()
8787
extraInfoButton.contentEdgeInsets = Constants.extraInfoCustomInsets
8888
extraInfoButton.setTitle(viewModel.auxiliaryButtonTitle, for: .normal)
89+
extraInfoButton.titleLabel?.numberOfLines = 2
90+
extraInfoButton.titleLabel?.textAlignment = .center
8991
extraInfoButton.on(.touchUpInside) { [weak self] _ in
9092
self?.didTapAuxiliaryButton()
9193
}

0 commit comments

Comments
 (0)