mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-14 03:15:49 +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"
|
||||
}).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();
|
||||
|
||||
selectedTweet.find(".js-stream-item-content").first().css("height", "100vh");
|
||||
$TD.screenshotTweet(selectedTweet.html(), tweetWidth, realHeight);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user