Skip to content

Commit

Permalink
🐛 Fix iframe height
Browse files Browse the repository at this point in the history
  • Loading branch information
ujibang committed Sep 11, 2024
1 parent 34711b1 commit 4cded4a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,12 @@ text-black {

.iframe-parent {
height: calc(var(--vh, 1vh) * 100 - 64px); // see https://css-tricks.com/the-trick-to-viewport-units-on-mobile/
height: calc(100vh - 64px); // fallback
border: none;
}

iframe {
margin-top: 0; // fix position about navbar in ios safari
height: calc(var(--vh, 1vh) * 100 - 64px); // see https://css-tricks.com/the-trick-to-viewport-units-on-mobile/
height: calc(100vh - 64px); // fallback
width: 100%;
border: none;
}
Expand Down

0 comments on commit 4cded4a

Please sign in to comment.