Attempting to space out story date when story image preview is turned off vs turned on. When on, the story date should all be consistent, and when off it can be relaxed.

This commit is contained in:
Samuel Clay 2015-09-30 11:23:04 -07:00
parent 5d8842d4a2
commit 01bf0f0b5f
2 changed files with 8 additions and 2 deletions

View file

@ -1992,11 +1992,14 @@ a img {
#story_titles .NB-story-title .story_date {
position: absolute;
width: 232px;
width: 172px;
top: 5px;
right: 0;
font-size: 11px;
}
#story_titles .NB-story-title.NB-has-image .story_date {
width: 236px;
}
.NB-theme-feed-size-xs #story_titles .NB-story-title .story_date {
font-size: 10px;
}

View file

@ -207,7 +207,10 @@ NEWSBLUR.Views.StoryTitleView = Backbone.View.extend({
},
show_image_preview: function() {
return NEWSBLUR.assets.preference('show_image_preview') && this.model.image_url();
if (!NEWSBLUR.assets.preference('show_image_preview')) {
return false;
}
return this.model.image_url() || true;
},
// ============