1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 12:57:57 +02:00

Render List stats below on mobile

This commit is contained in:
Raymond Hill 2023-05-17 15:45:31 -04:00
parent df5437a54f
commit 0442718efd
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -182,6 +182,12 @@ const renderFilterLists = ( ) => {
}
for ( const [ listkey, listDetails ] of treeEntries ) {
const listEntry = createListEntry(listDetails, depth);
if ( dom.cl.has(dom.root, 'mobile') ) {
const leafStats = qs$(listEntry, '.leafstats');
if ( leafStats ) {
listEntry.append(leafStats);
}
}
listEntry.dataset.key = listkey;
listEntry.dataset.parent = parentkey;
dom.text(qs$(listEntry, '.listname'), listDetails.title);