diff --git a/Tusker/Views/Profile Header/ProfileHeaderTableViewCell.swift b/Tusker/Views/Profile Header/ProfileHeaderTableViewCell.swift index f7f0cde904..526f671082 100644 --- a/Tusker/Views/Profile Header/ProfileHeaderTableViewCell.swift +++ b/Tusker/Views/Profile Header/ProfileHeaderTableViewCell.swift @@ -110,6 +110,8 @@ class ProfileHeaderTableViewCell: UITableViewCell { nameLabel.font = .boldSystemFont(ofSize: 17) nameLabel.textAlignment = .right nameLabel.numberOfLines = 0 + nameLabel.lineBreakMode = .byWordWrapping + nameLabel.setContentCompressionResistancePriority(.defaultLow, for: .horizontal) fieldNamesStackView.addArrangedSubview(nameLabel) let valueTextView = ContentTextView() @@ -120,7 +122,10 @@ class ProfileHeaderTableViewCell: UITableViewCell { valueTextView.textAlignment = .left valueTextView.awakeFromNib() valueTextView.navigationDelegate = delegate + valueTextView.setContentCompressionResistancePriority(.defaultLow, for: .horizontal) fieldValuesStackView.addArrangedSubview(valueTextView) + + nameLabel.heightAnchor.constraint(equalTo: valueTextView.heightAnchor).isActive = true } if accountUpdater == nil { diff --git a/Tusker/Views/Profile Header/ProfileHeaderTableViewCell.xib b/Tusker/Views/Profile Header/ProfileHeaderTableViewCell.xib index 4982581b9c..c4c7bde085 100644 --- a/Tusker/Views/Profile Header/ProfileHeaderTableViewCell.xib +++ b/Tusker/Views/Profile Header/ProfileHeaderTableViewCell.xib @@ -1,5 +1,6 @@ + @@ -77,13 +78,17 @@ - - + + - - + + + + + +