Skip to content

Commit 155b53b

Browse files
authored
Comments: minor changes (#24143)
* Limit number of lines for comment author * Update style of likes in comments to match the feed * Revert
1 parent 3d675db commit 155b53b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

WordPress/Classes/ViewRelated/Comments/Views/Detail/CommentContentTableViewCell.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ private extension CommentContentTableViewCell {
321321

322322
nameLabel?.font = style.nameFont
323323
nameLabel?.textColor = style.nameTextColor
324+
nameLabel?.numberOfLines = 1
324325

325326
badgeLabel?.font = Style.badgeFont
326327
badgeLabel?.textColor = Style.badgeTextColor
@@ -358,10 +359,10 @@ private extension CommentContentTableViewCell {
358359
let font = UIFont.preferredFont(forTextStyle: .footnote)
359360
configuration.image = image
360361
configuration.imagePlacement = .leading
361-
configuration.imagePadding = 6
362+
configuration.imagePadding = 2
362363
configuration.titleTextAttributesTransformer = UIConfigurationTextAttributesTransformer {
363364
var attributes = $0
364-
attributes.font = font.withWeight(.medium)
365+
attributes.font = font
365366
return attributes
366367
}
367368
configuration.contentInsets = .init(top: 8, leading: 8, bottom: 8, trailing: 8)

0 commit comments

Comments
 (0)