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);