@Sergo467

Как исправить некорректную работу flexbox в некоторых мобильных браузерах?

У меня следующая проблема. Я написал простенький калькулятор, но столкнулся с тем, что у некоторых моих друзей некорректно отображается вёрстка. Я считаю, что в этом виноват flexbox. Подскажите как возможно это исправить. Вот ссылка на мой калькулятор: https://sergo467.site.

@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

body {
    margin:0;
    padding:0;
    background-color:#2a2a2a;
    width:100vw;
    height:100vh;
    display: flex;
    justify-content:center;
    align-items:flex-start;
    font-family: 'Roboto', sans-serif;
}

.calc{
    background-color:#1d1d1d;
    height:100%;
    aspect-ratio:6/9;
    display:flex;
    flex-direction:column;
    justify-content:space-around;
    align-items:center;
	touch-action: manipulation;
	-webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.calcTop{
    background-color:#4c4c4c;
	border-top-style: solid;
	border-top-color: #2952e5;
	border-top-width: 5px;
    width:96.5%;
    height:22%;
    display:flex;
    flex-direction: column;
}

#calcTopTop{
    width: 100%-10px;
	height: 60%;
	font-size: 200%;
	color: white;
	text-align: right;
	vertical-align: middle;
	padding-right: 10px;
	padding-top: 10px;
}

#input{
    margin: 0;
    padding: 0;
    border: 0;
    width:100%-10px;
    height:40%;
    background-color: #4c4c4c;
    text-align: right;
    outline:none;
    font-size:250%;
    color: white;
    padding-right: 10px;
	padding-left: 10px;
	font-family: 'Roboto', sans-serif;
}

.calcBottom{
    width:96.5%;
    height:73%;
    display:flex;
    justify-content: space-between;
}

.calcBottomLeft{
    width:74.6666666666%;
    height:100%;
    display:flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content:space-between;
}

.calcBottomRight{
    width:24%;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content: space-between;
}

.button{
    font-size:250%;
    color: white;
    border:0;
	font-family: 'Roboto', sans-serif;
}

.buttonX1V1{
    width:32.1428571414%;
    height:16%;
}

.buttonX1V2{
    width:100%;
    height:16%;
}

.buttonWidthX2{
    width:66.0714285684%;
    height:16%;
}

.buttonHeightX2{
    width:100%;
    height:32.8%;
}

.buttonGroup1{
    background-color: #3f3f3f;
}

.buttonGroup2{
    background-color: #2c2c2c;
}

#button20{
    background-color: #2952e5;
}

@media screen and (max-width: 1080px){
    .calc{
        width:100%;
        height:auto;
		font-size: 300%;
    }
}


82lYZ9r80Rw.jpg?size=738x1600&quality=95&sign=8b0dccd9eed688661711b18f98fb31f2&type=albuml8iq3G3DKA8.jpg?size=738x1600&quality=95&sign=eddbe8af68509c46ee6d5a331fb75dcb&type=album
  • Вопрос задан
  • 94 просмотра
Решения вопроса 1
@Sergo467 Автор вопроса
Проблема оказалась в aspect-ratio.
Ответ написан
Комментировать
Пригласить эксперта
Ответы на вопрос 1
@ftftftftftftff
frontend developer
а почему через display:grid не сделать?
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы