1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-13 18:15:48 +02:00

Add 'td-notification' body class to desktop notifications & update notification.css

This commit is contained in:
chylex 2018-04-03 20:26:54 +02:00
parent 3f0b161cd0
commit e39e85e4dd
3 changed files with 4 additions and 6 deletions
Core/Notification
Resources/Scripts

View File

@ -196,7 +196,7 @@ public virtual void ResumeNotification(){
}
protected virtual string GetTweetHTML(TweetNotification tweet){
return tweet.GenerateHtml(IsCursorOverBrowser ? "td-hover" : string.Empty);
return tweet.GenerateHtml(IsCursorOverBrowser ? "td-notification td-hover" : "td-notification");
}
protected virtual void LoadTweet(TweetNotification tweet){

View File

@ -1,6 +1,4 @@
(function($TD){
document.getElementsByClassName("column")[0].style.height = "100%";
let ele = document.getElementsByTagName("article")[0];
ele.style.width = window.outerWidth+"px";

View File

@ -2,7 +2,7 @@
/* General */
/***********/
body {
body.td-notification {
overflow-y: auto !important;
}
@ -34,13 +34,13 @@ body {
/* Media */
/*********/
.media-size-medium {
.td-notification .media-size-medium {
max-height: 240px;
height: calc(100vh - 20px) !important;
border-radius: 1px !important;
}
.js-quote-detail .media-size-medium {
.td-notification .js-quote-detail .media-size-medium {
height: calc(100vh - 28px) !important;
}