(Hopefully) fixed templating issues resulting in improper rendering on narrow devices