Fix bad responsive modal sidebar behavior

Resolves #392