After a refactoring the sidemenu-canvas css class disappeared so changed the code from #3741 to use the main-view class instead.