mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2025-01-11 08:34:22 +01:00
chore: fix the username text field right label too long in sign-up form
This commit is contained in:
parent
1c981910c6
commit
116e9c143c
@ -115,6 +115,7 @@ extension MastodonRegisterTextFieldTableViewCell {
|
|||||||
label.font = MastodonRegisterTextFieldTableViewCell.textFieldLabelFont
|
label.font = MastodonRegisterTextFieldTableViewCell.textFieldLabelFont
|
||||||
label.textColor = Asset.Colors.Label.primary.color
|
label.textColor = Asset.Colors.Label.primary.color
|
||||||
label.text = text
|
label.text = text
|
||||||
|
label.lineBreakMode = .byTruncatingMiddle
|
||||||
|
|
||||||
label.translatesAutoresizingMaskIntoConstraints = false
|
label.translatesAutoresizingMaskIntoConstraints = false
|
||||||
containerView.addSubview(label)
|
containerView.addSubview(label)
|
||||||
@ -123,6 +124,7 @@ extension MastodonRegisterTextFieldTableViewCell {
|
|||||||
label.leadingAnchor.constraint(equalTo: paddingView.trailingAnchor),
|
label.leadingAnchor.constraint(equalTo: paddingView.trailingAnchor),
|
||||||
containerView.trailingAnchor.constraint(equalTo: label.trailingAnchor, constant: 16),
|
containerView.trailingAnchor.constraint(equalTo: label.trailingAnchor, constant: 16),
|
||||||
label.bottomAnchor.constraint(equalTo: containerView.bottomAnchor),
|
label.bottomAnchor.constraint(equalTo: containerView.bottomAnchor),
|
||||||
|
label.widthAnchor.constraint(lessThanOrEqualToConstant: 180).priority(.required - 1),
|
||||||
])
|
])
|
||||||
return containerView
|
return containerView
|
||||||
}()
|
}()
|
||||||
|
Loading…
Reference in New Issue
Block a user