Focus input bar when not on mobile

This improves the UX on desktop while avoiding the virtual keyboard
popping up on touch devices
Remove trailing spaces
Replace tabs with spaces