mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Further fine tune visual as per feedback
Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/3066#issuecomment-1891023881
This commit is contained in:
parent
975e3819a9
commit
3e6333d02b
2 changed files with 5 additions and 4 deletions
|
|
@ -15,7 +15,8 @@ body {
|
||||||
#buttonUpdate.active {
|
#buttonUpdate.active {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
#buttonUpdate.active .fa-icon svg {
|
#buttonUpdate.active .fa-icon svg,
|
||||||
|
body.working #buttonUpdate:not(.disabled) .fa-icon svg {
|
||||||
animation: spin 1s linear infinite;
|
animation: spin 1s linear infinite;
|
||||||
transform-origin: 50%;
|
transform-origin: 50%;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -286,14 +286,14 @@ const renderFilterLists = ( ) => {
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
const renderWidgets = ( ) => {
|
const renderWidgets = ( ) => {
|
||||||
|
const updating = dom.cl.has(dom.body, 'updating');
|
||||||
|
const hasObsolete = qs$('#lists .listEntry.checked.obsolete:not(.toRemove)') !== null;
|
||||||
dom.cl.toggle('#buttonApply', 'disabled',
|
dom.cl.toggle('#buttonApply', 'disabled',
|
||||||
filteringSettingsHash === hashFromCurrentFromSettings()
|
filteringSettingsHash === hashFromCurrentFromSettings()
|
||||||
);
|
);
|
||||||
const updating = dom.cl.has(dom.body, 'updating');
|
|
||||||
dom.cl.toggle('#buttonUpdate', 'active', updating);
|
dom.cl.toggle('#buttonUpdate', 'active', updating);
|
||||||
dom.cl.toggle('#buttonUpdate', 'disabled',
|
dom.cl.toggle('#buttonUpdate', 'disabled',
|
||||||
updating === false &&
|
updating === false && hasObsolete === false
|
||||||
qs$('#lists .listEntry.checked.obsolete:not(.toRemove)') === null
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue