1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2025-02-02 10:27:08 +01:00

Left-align the username in the profile header

This commit is contained in:
Jed Fox 2023-01-10 17:57:09 -05:00
parent ec2f819e63
commit df25feb7fd
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1

View File

@ -187,6 +187,8 @@ final class ProfileHeaderView: UIView {
button.titleLabel?.font = UIFontMetrics(forTextStyle: .callout).scaledFont(for: .systemFont(ofSize: 16, weight: .regular))
button.titleLabel?.adjustsFontSizeToFitWidth = true
button.titleLabel?.minimumScaleFactor = 0.5
button.titleLabel?.textAlignment = .natural
button.contentHorizontalAlignment = .leading
button.setTitleColor(Asset.Colors.Label.secondary.color, for: .normal)
button.menu = usernameButtonMenu
button.showsMenuAsPrimaryAction = true