Collapsed left-side panel is broken

Summary

After merging !62486 (merged) we have a visual regression for the left-and panel n collapsed state.

Steps to reproduce

  • open a list of issues in a project on gitlab.com
  • collapse the left-hand panel
  • watch the panel nopt fully collapsed with the sub-menu still being visible in the panel

What is the current bug behavior?

The panel doesn't get collapsed properly

What is the expected correct behavior?

The panel gets collapsed and no sub-items are permanently visible

Relevant logs and/or screenshots

Before !62486 (merged) (Commit: 6a5b7b00a78286127850a856334403db08e658c2) After !62486 (merged) (Commit: 7686659874efb64679316149413c122fc5bde9c6)
Screenshot_2021-05-31_at_11.52.44 Screenshot_2021-05-31_at_11.57.20

Output of checks

This bug happens on GitLab.com