mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
fix: displayNameLabel display beyound card
This commit is contained in:
parent
c1971438cd
commit
5c7a13e6b3
@ -32,6 +32,7 @@ class SearchRecommendAccountsCollectionViewCell: UICollectionViewCell {
|
|||||||
let displayNameLabel: UILabel = {
|
let displayNameLabel: UILabel = {
|
||||||
let label = UILabel()
|
let label = UILabel()
|
||||||
label.textColor = .white
|
label.textColor = .white
|
||||||
|
label.textAlignment = .center
|
||||||
label.font = .systemFont(ofSize: 18, weight: .semibold)
|
label.font = .systemFont(ofSize: 18, weight: .semibold)
|
||||||
label.translatesAutoresizingMaskIntoConstraints = false
|
label.translatesAutoresizingMaskIntoConstraints = false
|
||||||
return label
|
return label
|
||||||
@ -100,6 +101,8 @@ extension SearchRecommendAccountsCollectionViewCell {
|
|||||||
contentView.addSubview(displayNameLabel)
|
contentView.addSubview(displayNameLabel)
|
||||||
displayNameLabel.constrain([
|
displayNameLabel.constrain([
|
||||||
displayNameLabel.constraint(.top, toView: contentView, constant: 108),
|
displayNameLabel.constraint(.top, toView: contentView, constant: 108),
|
||||||
|
displayNameLabel.constraint(.leading, toView: contentView),
|
||||||
|
displayNameLabel.constraint(.trailing, toView: contentView),
|
||||||
displayNameLabel.constraint(.centerX, toView: contentView)
|
displayNameLabel.constraint(.centerX, toView: contentView)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user