[#74499710] Panel not collapsing when embedding designer.

Moved `hide-display`class to a different scope, so it will work when the designer is embedded...

[Fixes #74499710]
This is even more funnier because console uses the same semver and looks like bower cannot make sense of it all.