From 816a5334ac2feff30049b0d901dbbd83c42d1f2d Mon Sep 17 00:00:00 2001 From: chylex <contact@chylex.com> Date: Tue, 20 Nov 2018 20:56:52 +0100 Subject: [PATCH] Make the fix to visible scrollbar when loading TweetDeck more reliable --- Core/Utils/TwitterUtils.cs | 2 +- Resources/Scripts/styles/browser.css | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Core/Utils/TwitterUtils.cs b/Core/Utils/TwitterUtils.cs index d26cffaf..3ab66328 100644 --- a/Core/Utils/TwitterUtils.cs +++ b/Core/Utils/TwitterUtils.cs @@ -16,7 +16,7 @@ static class TwitterUtils{ public const string TweetDeckURL = "https://tweetdeck.twitter.com"; public static readonly Color BackgroundColor = Color.FromArgb(28, 99, 153); - public const string BackgroundColorOverride = "setTimeout(function f(){let h=document.head;if(!h){setTimeout(f,5);return;}let e=document.createElement('style');e.innerHTML='body,body::before{background:#1c6399!important}';h.appendChild(e);},1)"; + public const string BackgroundColorOverride = "setTimeout(function f(){let h=document.head;if(!h){setTimeout(f,5);return;}let e=document.createElement('style');e.innerHTML='body,body::before{background:#1c6399!important;margin:0}';h.appendChild(e);},1)"; public static readonly ResourceLink LoadingSpinner = new ResourceLink("https://ton.twimg.com/tduck/spinner", ResourceHandler.FromByteArray(Properties.Resources.spinner, "image/apng")); diff --git a/Resources/Scripts/styles/browser.css b/Resources/Scripts/styles/browser.css index 905cb3b8..9259cf94 100644 --- a/Resources/Scripts/styles/browser.css +++ b/Resources/Scripts/styles/browser.css @@ -1,11 +1,3 @@ -/***********/ -/* General */ -/***********/ - -body { - margin: 0; -} - /***********************/ /* Redesign scrollbars */ /***********************/