Skip to content
11 changes: 5 additions & 6 deletions build/media_source/templates/atum/js/template.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

const mobile = window.matchMedia('(max-width: 992px)');
const small = window.matchMedia('(max-width: 575.98px)');
const smallLandscape = window.matchMedia('(max-width: 767.98px)');
const tablet = window.matchMedia('(min-width: 576px) and (max-width:991.98px)');

/**
Expand Down Expand Up @@ -210,12 +209,12 @@
wrapper.classList.add('closed');
}

if (smallLandscape.matches) {
if (sidebarNav) sidebarNav.classList.add('mm-collapse');
if (subhead) subhead.classList.add('mm-collapse');
if (small.matches) {
if (sidebarNav) sidebarNav.classList.add('collapse');
if (subhead) subhead.classList.add('collapse');
} else {
if (sidebarNav) sidebarNav.classList.remove('mm-collapse');
if (subhead) subhead.classList.remove('mm-collapse');
if (sidebarNav) sidebarNav.classList.remove('collapse');
if (subhead) subhead.classList.remove('collapse');
}
}

Expand Down