Skip to content

Commit

Permalink
Revert ugly two-line font size dickery in lists.
Browse files Browse the repository at this point in the history
Forums list still does it a little bit, threads and messages don't bother.
  • Loading branch information
nolanw committed Apr 9, 2014
1 parent eecb833 commit f85e97a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Source/Forums/AwfulForumCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
self.textLabel.numberOfLines = 2;
self.textLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleBody];
self.textLabel.adjustsFontSizeToFitWidth = YES;
self.textLabel.minimumScaleFactor = 0.5;
self.textLabel.minimumScaleFactor = 0.95;

_favoriteButton = [UIButton new];
[_favoriteButton setImage:[UIImage imageNamed:@"star-off"] forState:UIControlStateNormal];
Expand Down Expand Up @@ -53,7 +53,7 @@ - (void)layoutSubviews
favoriteFrame.origin.y = CGRectGetMidY(remainder) - CGRectGetHeight(favoriteFrame) / 2 - 2;
self.favoriteButton.frame = favoriteFrame;

CGRect nameFrame = CGRectInset(remainder, 4, 4);
CGRect nameFrame = CGRectInset(remainder, 4, 2);
CGFloat indent = self.subforumLevel * 15;
nameFrame.origin.x += indent;
nameFrame.size.width -= indent;
Expand Down
2 changes: 0 additions & 2 deletions Source/Private Messages/AwfulPrivateMessageCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus

self.textLabel.numberOfLines = 2;
self.textLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleSubheadline];
self.textLabel.adjustsFontSizeToFitWidth = YES;
self.textLabel.minimumScaleFactor = 0.5;

self.detailTextLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleCaption1];
self.detailTextLabel.enabled = NO;
Expand Down
2 changes: 0 additions & 2 deletions Source/Threads/AwfulThreadCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
[self.contentView addSubview:_tagAndRatingView];

self.textLabel.numberOfLines = 2;
self.textLabel.adjustsFontSizeToFitWidth = YES;
self.textLabel.minimumScaleFactor = 0.5;

_numberOfPagesLabel = [UILabel new];
[self.contentView addSubview:_numberOfPagesLabel];
Expand Down

0 comments on commit f85e97a

Please sign in to comment.