The same fix should be done on line 143. Otherwise, the problem still occurs with the following steps:

1. Make the sidebar narrow
2. Hide the sidebar
3. Show the sidebar
4. Scroll right