env(safe-area-inset-*) not working #6688
-
Inside the browser in capacitor the env(safe-area-inset-*) is set to 0px. Even if the device has a safe area. The styling: body {
background-color: red;
}
.content {
margin-top: env(safe-area-inset-top);
margin-bottom: env(safe-area-inset-bottom);
height: 100%;
background-color: white;
font-size: 60px;
color: black;
display: flex;
align-items: center;
justify-content: center;
} |
Beta Was this translation helpful? Give feedback.
Answered by
marcelxpfeifer
Jun 30, 2023
Replies: 1 comment 3 replies
-
Fixed with <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover"> |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
marcelxpfeifer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed with