Skip to content

Commit

Permalink
Render List stats below on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed May 17, 2023
1 parent df5437a commit 0442718
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/js/3p-filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0442718

Please sign in to comment.