M
M
manevr332021-09-14 16:21:45
css
manevr33, 2021-09-14 16:21:45

Styles are floating on iphone 6,7,8,se. How to fix?

Please tell me how to fix it.

A purple message floats on iPhones. The code is like this

&--user {
    width: auto;
    min-width: 0px;
    display: flex;
    height: auto;
    flex-direction: column;
    max-width: 76%;
    color: #fff;
    padding: 10px 15px 10px 10px;
    align-self: flex-end;
    background: #7b2be0;
    box-shadow: 0px 5px 4px rgba(123, 43, 224, 0.31),
      -5px -5px 5px rgba(255, 255, 255, 0.08);
    border-radius: 15px 15px 0px 15px;
    .message__text {
      color: white;
      text-align: end;
      height: auto;
    }
  }

6140a164f3f10094840248.png

This is how it should look
6140a18c2473a529497843.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Yamchuk, 2021-09-14
@tomgif

{
  display: -webkit-flex; 
  display: flex;
}

These devices do not have full support for the latest CSS 3 features such as flexbox, so prefix -webkit- to appropriate styles

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question