Fixed some layout flaws on mobile devices.