updating the transition to collapse the nav when the filter is opened to make it smoother

only collapsing the nav when in desktop view when opening the filter