Only 60px high images will be previewed.

This commit is contained in:
Samuel Clay 2016-08-15 16:20:53 -07:00
parent 43b90a6ab3
commit eeb715a8e2

View file

@ -262,7 +262,7 @@ NEWSBLUR.Views.StoryTitleView = Backbone.View.extend({
var $img = $("<img>");
$img.imagesLoaded(function() {
// console.log(["Loaded", index, $img[0].width, $img.attr('src'), self.model.get('story_title').substr(0, 30)]);
if ($img[0].width > 60) {
if ($img[0].width > 60 && $img[0].height > 60) {
self.$(".NB-storytitles-story-image").css({
'background-image': "none, url(\'" + $img.attr('src') + "\')",
'display': 'block'