@@ -289,14 +289,7 @@ public final class ChatUserInfoItemNode: ListViewItemNode, ASGestureRecognizerDe
289289 backgroundSize. height += verticalInset
290290
291291 let constrainedWidth = params. width - ( horizontalInset + horizontalContentInset) * 2.0
292- let ( titleLayout, titleApply) = makeTitleLayout ( TextNodeLayoutArguments ( attributedString: NSAttributedString ( string: item. peer. displayTitle ( strings: item. presentationData. strings, displayOrder: item. presentationData. nameDisplayOrder) + item. peer. displayTitle ( strings: item. presentationData. strings, displayOrder: item. presentationData. nameDisplayOrder) + item. peer. displayTitle ( strings: item. presentationData. strings, displayOrder: item. presentationData. nameDisplayOrder) , font: Font . semibold ( 15.0 ) , textColor: primaryTextColor) , backgroundColor: nil , maximumNumberOfLines: 2 , truncationType: . end, constrainedSize: CGSize ( width: constrainedWidth, height: CGFloat . greatestFiniteMagnitude) , alignment: . center, cutout: nil , insets: UIEdgeInsets ( ) ) )
293- backgroundSize. height += titleLayout. size. height
294- backgroundSize. height += verticalSpacing
295-
296- let ( subtitleLayout, subtitleApply) = makeSubtitleLayout ( TextNodeLayoutArguments ( attributedString: NSAttributedString ( string: item. presentationData. strings. Chat_NonContactUser_Subtitle, font: Font . regular ( 13.0 ) , textColor: subtitleColor) , backgroundColor: nil , maximumNumberOfLines: 0 , truncationType: . end, constrainedSize: CGSize ( width: constrainedWidth, height: CGFloat . greatestFiniteMagnitude) , alignment: . natural, cutout: nil , insets: UIEdgeInsets ( ) ) )
297- backgroundSize. height += subtitleLayout. size. height
298- backgroundSize. height += verticalSpacing + paragraphSpacing
299-
292+
300293 let infoConstrainedSize = CGSize ( width: floor ( constrainedWidth * 0.7 ) , height: CGFloat . greatestFiniteMagnitude)
301294
302295 var maxTitleWidth : CGFloat = 0.0
@@ -388,8 +381,17 @@ public final class ChatUserInfoItemNode: ListViewItemNode, ASGestureRecognizerDe
388381 groupsTitleLayoutAndApply = nil
389382 groupsValueLayoutAndApply = nil
390383 }
384+
385+ let titleConstrainedWidth = maxTitleWidth + attributeSpacing + maxValueWidth
386+ let ( titleLayout, titleApply) = makeTitleLayout ( TextNodeLayoutArguments ( attributedString: NSAttributedString ( string: item. peer. displayTitle ( strings: item. presentationData. strings, displayOrder: item. presentationData. nameDisplayOrder) , font: Font . semibold ( 15.0 ) , textColor: primaryTextColor) , backgroundColor: nil , maximumNumberOfLines: 3 , truncationType: . end, constrainedSize: CGSize ( width: titleConstrainedWidth, height: CGFloat . greatestFiniteMagnitude) , alignment: . center, cutout: nil , insets: UIEdgeInsets ( ) ) )
387+ backgroundSize. height += titleLayout. size. height
388+ backgroundSize. height += verticalSpacing
389+
390+ let ( subtitleLayout, subtitleApply) = makeSubtitleLayout ( TextNodeLayoutArguments ( attributedString: NSAttributedString ( string: item. presentationData. strings. Chat_NonContactUser_Subtitle, font: Font . regular ( 13.0 ) , textColor: subtitleColor) , backgroundColor: nil , maximumNumberOfLines: 0 , truncationType: . end, constrainedSize: CGSize ( width: titleConstrainedWidth, height: CGFloat . greatestFiniteMagnitude) , alignment: . natural, cutout: nil , insets: UIEdgeInsets ( ) ) )
391+ backgroundSize. height += subtitleLayout. size. height
392+ backgroundSize. height += verticalSpacing + paragraphSpacing
391393
392- backgroundSize. width = horizontalContentInset * 2.0 + max ( titleLayout . size . width , maxTitleWidth + attributeSpacing + maxValueWidth)
394+ backgroundSize. width = horizontalContentInset * 2.0 + maxTitleWidth + attributeSpacing + maxValueWidth
393395
394396 let disclaimerText : NSMutableAttributedString
395397 if let verification = item. verification {
0 commit comments