Fixed formatting issue of sidebar after window has been resized.