Fixes #8633: Recheck sidenav state on window resize
Fixes #8633: Recheck sidenav state on window resize

* Recheck sidenav state on window resize
* Remove `data-sidenav-pinned` attribute when hiding sidenav
* Remove `data-sidenav-hidden` attribute when showing sidenav

digitalocean/netbox,digitalocean/netbox,digitalocean/netbox,digitalocean/netbox