mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-19 18:15:47 +02:00
Fix broken screenshots of tweets with just one line of text
This commit is contained in:
parent
b3d1e1bfac
commit
5cf4843212
@ -708,9 +708,13 @@
|
|||||||
width: tweetWidth+"px"
|
width: tweetWidth+"px"
|
||||||
}).appendTo(document.body);
|
}).appendTo(document.body);
|
||||||
|
|
||||||
let realHeight = Math.floor(testTweet.height());
|
let testTweetAvatar = testTweet.find(".tweet-avatar").first();
|
||||||
|
let avatarBottom = testTweetAvatar.offset().top+testTweetAvatar.height();
|
||||||
|
|
||||||
|
let realHeight = Math.floor(Math.max(testTweet.height(), avatarBottom+10));
|
||||||
testTweet.remove();
|
testTweet.remove();
|
||||||
|
|
||||||
|
selectedTweet.find(".js-stream-item-content").first().css("height", "100vh");
|
||||||
$TD.screenshotTweet(selectedTweet.html(), tweetWidth, realHeight);
|
$TD.screenshotTweet(selectedTweet.html(), tweetWidth, realHeight);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user