Fixed sidebar not collapsing on merge request in mobile screens Closes #32759 See merge request !12489
Signed-off-by: Rémy Coutable <remy@rymai.me>