Fixes icon sidebar expanding causing a jump in padding
What does this MR do?
Fixes a weird padding jump when expanding the icon sidebar when the screen is of a certain size.
Screenshots (if relevant)
What are the relevant issue numbers?
Closes #36456 (closed)