"Lag" when closing sidebar

Due to legacy css transition.

Fixes #3719