fix style for different device