diff --git a/Core/Notification/FormNotificationBase.cs b/Core/Notification/FormNotificationBase.cs index eb1d504d..b3ec3354 100644 --- a/Core/Notification/FormNotificationBase.cs +++ b/Core/Notification/FormNotificationBase.cs @@ -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){ diff --git a/Resources/Scripts/screenshot.js b/Resources/Scripts/screenshot.js index 6ffb5f06..65696805 100644 --- a/Resources/Scripts/screenshot.js +++ b/Resources/Scripts/screenshot.js @@ -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"; diff --git a/Resources/Scripts/styles/notification.css b/Resources/Scripts/styles/notification.css index 31ff9988..e5eb3955 100644 --- a/Resources/Scripts/styles/notification.css +++ b/Resources/Scripts/styles/notification.css @@ -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; }