mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
iOS: tweaked #1156 (story height)
- Fixed overlap when the title is long and the content is short.
This commit is contained in:
parent
9ffb727d70
commit
3aecee118c
1 changed files with 2 additions and 2 deletions
|
@ -1698,9 +1698,9 @@ heightForRowAtIndexPath:(NSIndexPath *)indexPath {
|
|||
} else if (self.isDashboardModule || self.textSize != FeedDetailTextSizeTitleOnly) {
|
||||
if (self.textSize == FeedDetailTextSizeMedium || self.textSize == FeedDetailTextSizeLong) {
|
||||
NSDictionary *story = [self getStoryAtRow:indexPath.row];
|
||||
NSString *content = [[story objectForKey:@"story_content"] convertHTML];
|
||||
NSString *content = [story[@"story_content"] convertHTML];
|
||||
|
||||
if (content.length < 50) {
|
||||
if (content.length < 50 && [story[@"story_title"] length] < 30) {
|
||||
return height + font.pointSize * 3;
|
||||
} else if (content.length < 100) {
|
||||
return height + font.pointSize * 5;
|
||||
|
|
Loading…
Add table
Reference in a new issue