Skip to content

Commit

Permalink
Merge pull request #2916 from lukasbableck/master
Browse files Browse the repository at this point in the history
Add safe-area-inset-bottom padding to bottom-nav
  • Loading branch information
louislam authored May 25, 2023
2 parents 771ca09 + cf59832 commit 36942de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/svg+xml" href="/icon.svg" />
<link rel="manifest" href="/manifest.json" />
Expand Down
6 changes: 3 additions & 3 deletions src/layouts/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
</main>

<!-- Mobile Only -->
<div v-if="$root.isMobile" style="width: 100%; height: 60px;" />
<div v-if="$root.isMobile" style="width: 100%; height: calc(60px + env(safe-area-inset-bottom));" />
<nav v-if="$root.isMobile && $root.loggedIn" class="bottom-nav">
<router-link to="/dashboard" class="nav-link">
<div><font-awesome-icon icon="tachometer-alt" /></div>
Expand Down Expand Up @@ -182,14 +182,14 @@ export default {
z-index: 1000;
position: fixed;
bottom: 0;
height: 60px;
height: calc(60px + env(safe-area-inset-bottom));
width: 100%;
left: 0;
background-color: #fff;
box-shadow: 0 15px 47px 0 rgba(0, 0, 0, 0.05), 0 5px 14px 0 rgba(0, 0, 0, 0.05);
text-align: center;
white-space: nowrap;
padding: 0 10px;
padding: 0 10px env(safe-area-inset-bottom);
a {
text-align: center;
Expand Down

0 comments on commit 36942de

Please sign in to comment.