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

Move 'Show this thread' in desktop notifications above media/quotes & fix hover color w/ black theme

This commit is contained in:
chylex 2018-02-10 08:29:59 +01:00
parent 2b54627750
commit 2282a9df28
2 changed files with 8 additions and 1 deletions
Resources
Plugins/edit-design
Scripts

View File

@ -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 }
` : ``}

View File

@ -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();