From 2282a9df2872e916901b2ffca3d7bc48a03e1d99 Mon Sep 17 00:00:00 2001 From: chylex <contact@chylex.com> Date: Sat, 10 Feb 2018 08:29:59 +0100 Subject: [PATCH] Move 'Show this thread' in desktop notifications above media/quotes & fix hover color w/ black theme --- Resources/Plugins/edit-design/browser.js | 3 ++- Resources/Scripts/code.js | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Resources/Plugins/edit-design/browser.js b/Resources/Plugins/edit-design/browser.js index a7520f09..3856c329 100644 --- a/Resources/Plugins/edit-design/browser.js +++ b/Resources/Plugins/edit-design/browser.js @@ -601,7 +601,8 @@ ${this.config.revertIcons ? ` ` : ``} ${this.config.themeOverride === "black" ? ` -html.dark a, html.dark a:hover, html.dark a:focus, html.dark a:active, html.dark .btn-neutral-positive { color: #8bd } +html.dark a, html.dark a:hover, html.dark a:focus, html.dark a:active { color: #8bd } +.btn-neutral-positive { color: #8bd !important } .quoted-tweet { border-color: #292f33 !important } ` : ``} diff --git a/Resources/Scripts/code.js b/Resources/Scripts/code.js index 655f8add..eb3cc91e 100644 --- a/Resources/Scripts/code.js +++ b/Resources/Scripts/code.js @@ -186,6 +186,12 @@ return $(this).text() === "Show this thread"; }).first().each(function(){ this.id = "tduck-show-thread"; + + let moveBefore = html.find(".tweet-body > .js-media, .tweet-body > .js-media-preview-container, .quoted-tweet"); + + if (moveBefore){ + $(this).css("margin-top", "5px").removeClass("margin-b--5").parent("span").detach().insertBefore(moveBefore); + } }); let type = tweet.getChirpType();