Skip to content

Commit

Permalink
💄 Fix sophia iframe position on ios safari
Browse files Browse the repository at this point in the history
  • Loading branch information
ujibang committed Sep 10, 2024
1 parent 4404531 commit d90b659
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ $content-width: 800px;
$on-palm: 600px;
$on-laptop: 800px;

:root {
--app-height: 100%;
}

body {
background-color: $background-color;
color: white;
Expand Down Expand Up @@ -226,7 +230,9 @@ text-black {
}

iframe {
height: 100%;
margin-top: 0; // fix position about navbar in ios safari
height: calc(100vh - 64px);
max-height: calc(100vh - 64px);
width: 100%;
border: none;
}
Expand Down

0 comments on commit d90b659

Please sign in to comment.