From fd7df41d4f798d5df9e72cd0d37ee96845b5b900 Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Tue, 12 Feb 2013 12:18:32 -0800 Subject: [PATCH] Fixing margins on story truncation. --- media/css/reader.css | 3 ++- media/js/newsblur/views/story_detail_view.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/media/css/reader.css b/media/css/reader.css index 3c995d1c4..6ddf6ded9 100644 --- a/media/css/reader.css +++ b/media/css/reader.css @@ -2286,13 +2286,14 @@ background: transparent; max-height: none; } .NB-feed-story .NB-story-content-wrapper { - margin: 0 236px 0 28px; + margin: 0 236px 28px 28px; } .NB-feed-story-view-narrow .NB-feed-story .NB-story-content-wrapper { margin-right: 28px; } .NB-story-content-wrapper.NB-story-content-wrapper-height-truncated { max-height: 460px; + margin-bottom: 0; overflow: hidden; } .NB-story-content-wrapper.NB-story-content-wrapper-height-fudged { diff --git a/media/js/newsblur/views/story_detail_view.js b/media/js/newsblur/views/story_detail_view.js index 7e46607a4..4523df9f1 100644 --- a/media/js/newsblur/views/story_detail_view.js +++ b/media/js/newsblur/views/story_detail_view.js @@ -384,7 +384,6 @@ NEWSBLUR.Views.StoryDetailView = Backbone.View.extend({ var height_ratio = content_height / max_height; if (content_height < max_height) return; - // $wrapper.removeClass('NB-story-content-wrapper-height-truncated'); // console.log(["max height", max_height, content_height, content_height / max_height]); this._fetch_interval = setInterval(function() { NEWSBLUR.app.story_list.fetch_story_locations_in_feed_view(); @@ -398,6 +397,7 @@ NEWSBLUR.Views.StoryDetailView = Backbone.View.extend({ complete: _.bind(function() { clearInterval(this._fetch_interval); NEWSBLUR.app.story_list.fetch_story_locations_in_feed_view(); + $wrapper.removeClass('NB-story-content-wrapper-height-truncated'); }, this) });