mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Preventing unwanted story truncation.
This commit is contained in:
parent
512618b3fc
commit
730ab7fa1e
2 changed files with 6 additions and 3 deletions
|
@ -401,7 +401,9 @@ NEWSBLUR.Views.StoryDetailView = Backbone.View.extend({
|
|||
|
||||
truncate_story_height: function() {
|
||||
if (this._truncated) return;
|
||||
// if (NEWSBLUR.assets.preference('feed_view_single_story')) return;
|
||||
if (!this.is_truncatable()) return;
|
||||
|
||||
if (NEWSBLUR.assets.preference('feed_view_single_story')) return;
|
||||
|
||||
// console.log(["Checking truncate", this.$el, this.images_to_load, this.truncate_delay / 1000 + " sec delay"]);
|
||||
var $expander = this.$(".NB-story-content-expander");
|
||||
|
@ -443,7 +445,8 @@ NEWSBLUR.Views.StoryDetailView = Backbone.View.extend({
|
|||
}, this));
|
||||
var is_truncatable = this.is_truncatable();
|
||||
|
||||
if (!is_truncatable && !this.model.get('starred')) return;
|
||||
console.log(['truncatable', is_truncatable, this.images_to_load]);
|
||||
if (!is_truncatable) return;
|
||||
|
||||
this.truncate_delay = 100;
|
||||
this.images_to_load = this.$('img').length;
|
||||
|
|
|
@ -184,7 +184,7 @@ NEWSBLUR.Views.StorySaveView = Backbone.View.extend({
|
|||
// Sideoptions too big, embiggen left side
|
||||
console.log(["Sideoption too big, embiggening", content_height, sideoptions_height, new_sideoptions_height]);
|
||||
$story_content.stop(true, true).animate({
|
||||
'height': new_sideoptions_height
|
||||
'min-height': new_sideoptions_height
|
||||
}, {
|
||||
'duration': 350,
|
||||
'easing': 'easeInOutQuint',
|
||||
|
|
Loading…
Add table
Reference in a new issue