From e39e85e4dd9217500096f6eec7ab3e57b9be0ecb Mon Sep 17 00:00:00 2001
From: chylex <contact@chylex.com>
Date: Tue, 3 Apr 2018 20:26:54 +0200
Subject: [PATCH] Add 'td-notification' body class to desktop notifications &
 update notification.css

---
 Core/Notification/FormNotificationBase.cs | 2 +-
 Resources/Scripts/screenshot.js           | 2 --
 Resources/Scripts/styles/notification.css | 6 +++---
 3 files changed, 4 insertions(+), 6 deletions(-)

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;
 }