mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-11 02:34:08 +02:00
Add scrollbar to large popup notifications and display quoted tweets in the notification
Closes #9
This commit is contained in:
parent
cc7fc7e994
commit
40acb49011
@ -92,7 +92,7 @@ public string GenerateHtml(){
|
||||
build.Append("<!DOCTYPE html>");
|
||||
build.Append("<html class='os-windows txt-base-").Append(FontSizeClass).Append("'>");
|
||||
build.Append("<head>").Append(HeadTag).Append("</head>");
|
||||
build.Append("<body class='hearty'><div class='app-columns-container'><div class='column' style='width:100%'>");
|
||||
build.Append("<body class='hearty'><div class='app-columns-container'><div class='column scroll-styled-v' style='width:100%;overflow-y:auto'>");
|
||||
build.Append(html);
|
||||
build.Append("</div></div></body>");
|
||||
build.Append("</html>");
|
||||
|
@ -91,17 +91,9 @@
|
||||
}));
|
||||
|
||||
html.css("border","0");
|
||||
html.find(".tweet-body").first().children("footer").remove();
|
||||
|
||||
var url = html.find("time").first().children("a").first().attr("href") || "";
|
||||
var body = html.find(".tweet-body").first();
|
||||
|
||||
body.children("div.js-quote-detail").each(function(){
|
||||
$(this).html("(quoted tweet)");
|
||||
$(this).removeClass("padding-al");
|
||||
$(this).css("padding","6px");
|
||||
});
|
||||
|
||||
body.children("footer").remove();
|
||||
|
||||
$TD.onTweetPopup(html.html(),url,tweet.text.length); // TODO column
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user