mirror of https://github.com/gorhill/uBlock.git
Fix custom filter list box glitch; minor code review
This commit is contained in:
parent
4940f47174
commit
06a3526207
|
@ -140,10 +140,10 @@ span.new {
|
||||||
background-color: hsl(36, 100%, 75%);
|
background-color: hsl(36, 100%, 75%);
|
||||||
}
|
}
|
||||||
#externalListsDiv {
|
#externalListsDiv {
|
||||||
margin: 2em auto 0 2em;
|
margin: 2em auto 0 1em;
|
||||||
}
|
}
|
||||||
body[dir=rtl] #externalListsDiv {
|
body[dir=rtl] #externalListsDiv {
|
||||||
margin: 2em 2em 0;
|
margin: 2em 1em 0;
|
||||||
}
|
}
|
||||||
#externalLists {
|
#externalLists {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
|
@ -76,6 +76,9 @@ var renderFilterLists = function() {
|
||||||
var renderElapsedTimeToString = vAPI.i18n.renderElapsedTimeToString;
|
var renderElapsedTimeToString = vAPI.i18n.renderElapsedTimeToString;
|
||||||
var lastUpdateString = vAPI.i18n('3pLastUpdate');
|
var lastUpdateString = vAPI.i18n('3pLastUpdate');
|
||||||
|
|
||||||
|
// Don't lose the custom filter textbox
|
||||||
|
uDom('#templates').append(uDom('#externalListsDiv'));
|
||||||
|
|
||||||
// Assemble a pretty blacklist name if possible
|
// Assemble a pretty blacklist name if possible
|
||||||
var listNameFromListKey = function(listKey) {
|
var listNameFromListKey = function(listKey) {
|
||||||
if ( listKey === listDetails.userFiltersPath ) {
|
if ( listKey === listDetails.userFiltersPath ) {
|
||||||
|
|
|
@ -74,8 +74,7 @@ return {
|
||||||
'behind-the-scene',
|
'behind-the-scene',
|
||||||
'chrome-extension-scheme',
|
'chrome-extension-scheme',
|
||||||
'chrome-scheme',
|
'chrome-scheme',
|
||||||
'opera-scheme',
|
'opera-scheme'
|
||||||
''
|
|
||||||
].join('\n').trim(),
|
].join('\n').trim(),
|
||||||
|
|
||||||
localSettings: {
|
localSettings: {
|
||||||
|
|
Loading…
Reference in New Issue