Fix directions buttons on small screens. Closes #814