fix mobile css calculating