1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-28 09:15:46 +02:00

Fix various margin issues in tweet screenshots

This commit is contained in:
chylex 2017-03-29 15:48:40 +02:00
parent be76d9a6dc
commit e9795cd697

View File

@ -301,10 +301,11 @@
var isReply = !isDetail && (parent.hasClass("js-replies-to") || parent.hasClass("js-replies-before")); var isReply = !isDetail && (parent.hasClass("js-replies-to") || parent.hasClass("js-replies-before"));
selectedTweet = selectedTweet.clone(); selectedTweet = selectedTweet.clone();
selectedTweet.children().first().addClass($(document.documentElement).attr("class")).css("padding-bottom", "12px"); selectedTweet.children().first().addClass($(document.documentElement).attr("class")).css("padding-bottom", "0");
setImportantProperty(selectedTweet.find(".js-quote-detail"), "margin-bottom", "0"); setImportantProperty(selectedTweet.find(".js-tweet-text"), "margin-bottom", "8px");
setImportantProperty(selectedTweet.find(".js-media-preview-container"), "margin-bottom", "0"); setImportantProperty(selectedTweet.find(".js-quote-detail"), "margin-bottom", "10px");
setImportantProperty(selectedTweet.find(".js-media-preview-container"), "margin-bottom", "10px");
if (isDetail){ if (isDetail){
setImportantProperty(selectedTweet.find(".js-tweet-media"), "margin-bottom", "0"); setImportantProperty(selectedTweet.find(".js-tweet-media"), "margin-bottom", "0");