Stop sidebar icons collapsing on collapse and expand
Closes #31837 (closed)
This will create a new commit in order to revert the existing changes.