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

Move accounts above hashtags in search results

This commit is contained in:
chylex 2018-04-02 23:26:51 +02:00
parent 705b5d38cf
commit ab915b7115
2 changed files with 16 additions and 0 deletions
Resources/Scripts

View File

@ -1196,6 +1196,17 @@
}
});
//
// Block: Reorder search results to move accounts above hashtags.
//
onAppReady.push(function(){
let container = $(".js-search-in-popover");
let hashtags = $(".js-typeahead-topic-list", container);
$(".js-typeahead-user-list", container).insertBefore(hashtags);
hashtags.addClass("list-divider");
});
//
// Block: Make submitting search queries while holding Ctrl or middle-clicking the search icon open the search externally.
//

View File

@ -195,6 +195,11 @@ a[data-full-url] {
color: #9f51cf !important;
}
.js-typeahead-user-list.is-hidden + .js-typeahead-topic-list {
/* hide custom search result divider when not needed */
border-top: none !important;
}
/***************************************/
/* Replace 'Stay open' with a pin icon */
/***************************************/