mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing misaligned grid stories when title matches content.
This commit is contained in:
parent
866327fbfe
commit
994399490e
1 changed files with 2 additions and 1 deletions
|
@ -196,6 +196,7 @@ NEWSBLUR.Views.StoryTitleView = Backbone.View.extend({
|
|||
|
||||
if (NEWSBLUR.assets.view_setting(NEWSBLUR.reader.active_feed, 'layout') == 'grid') {
|
||||
var pruned_description = this.model.content_preview('story_content', 500);
|
||||
return pruned_description;
|
||||
} else {
|
||||
var pruned_description = this.model.content_preview();
|
||||
}
|
||||
|
@ -204,7 +205,7 @@ NEWSBLUR.Views.StoryTitleView = Backbone.View.extend({
|
|||
|
||||
if (pruned_title.substr(0, 30) == pruned_description.substr(0, 30)) return false;
|
||||
if (pruned_description.length < 30) return false;
|
||||
|
||||
|
||||
return pruned_description;
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue