fixing the bug whereby the text drops below the sidebar when the window is too narrow