Fix some overflowing issues on smartphones