mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-01 08:34:11 +02:00
Fix visual issues with clear-columns plugin (icon in temp columns, misaligned Messages icons)
This commit is contained in:
parent
53cd9dc9a6
commit
f3884315c0
@ -45,9 +45,12 @@ enabled(){
|
|||||||
|
|
||||||
// add column buttons and keyboard shortcut info to UI
|
// add column buttons and keyboard shortcut info to UI
|
||||||
replaceMustache("column/column_header.mustache", "</header>", [
|
replaceMustache("column/column_header.mustache", "</header>", [
|
||||||
|
'{{^isTemporary}}',
|
||||||
'<a class="column-header-link" href="#" data-action="td-clearcolumns-dosingle" style="right:34px">',
|
'<a class="column-header-link" href="#" data-action="td-clearcolumns-dosingle" style="right:34px">',
|
||||||
'<i class="icon icon-clear-timeline"></i>',
|
'<i class="icon icon-clear-timeline"></i>',
|
||||||
'</a></header>'
|
'</a>',
|
||||||
|
'{{/isTemporary}}',
|
||||||
|
'</header>'
|
||||||
].join(""));
|
].join(""));
|
||||||
|
|
||||||
replaceMustache("keyboard_shortcut_list.mustache", "</dl> <dl", [
|
replaceMustache("keyboard_shortcut_list.mustache", "</dl> <dl", [
|
||||||
@ -57,6 +60,16 @@ enabled(){
|
|||||||
'<span class="text-like-keyboard-key">Alt</span> + <span class="text-like-keyboard-key">Del</span> Clear all',
|
'<span class="text-like-keyboard-key">Alt</span> + <span class="text-like-keyboard-key">Del</span> Clear all',
|
||||||
'</dd></dl><dl'
|
'</dd></dl><dl'
|
||||||
].join(""));
|
].join(""));
|
||||||
|
|
||||||
|
// load custom style
|
||||||
|
var style = document.createElement("style");
|
||||||
|
document.head.appendChild(style);
|
||||||
|
|
||||||
|
var sheet = style.sheet;
|
||||||
|
sheet.insertRule(".column-title { margin-right: 60px !important; }", 0);
|
||||||
|
sheet.insertRule(".column-type-message .column-title { margin-right: 115px !important; }", 0);
|
||||||
|
sheet.insertRule(".mark-all-read-link { right: 59px !important; }", 0);
|
||||||
|
sheet.insertRule(".open-compose-dm-link { right: 90px !important; }", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
ready(){
|
ready(){
|
||||||
|
Loading…
Reference in New Issue
Block a user