add small class to directions to fix input resize bug