Skip to content

Commit

Permalink
respect safe areas
Browse files Browse the repository at this point in the history
  • Loading branch information
edde746 committed Nov 1, 2023
1 parent aa236a2 commit ea8a4c7
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 11 deletions.
3 changes: 2 additions & 1 deletion src/common/MainNavBars/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.main-nav-bars-container {
position: relative;
z-index: 0;
margin: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);

.horizontal-nav-bar {
position: absolute;
Expand Down Expand Up @@ -36,7 +37,7 @@
.main-nav-bars-container {
.nav-content-container {
left: 0;
bottom: var(--vertical-nav-bar-size);
bottom: calc(var(--vertical-nav-bar-size) + env(safe-area-inset-bottom));
}

.vertical-nav-bar {
Expand Down
2 changes: 1 addition & 1 deletion src/common/NavBar/HorizontalNavBar/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
align-items: center;
justify-content: space-between;
height: var(--horizontal-nav-bar-size);
padding-right: 1rem;
padding-right: min(1rem, calc(1rem - env(safe-area-inset-right)));
background-color: transparent;
overflow: visible;

Expand Down
4 changes: 2 additions & 2 deletions src/common/NavBar/VerticalNavBar/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
flex-direction: row;
justify-content: space-between;
gap: 0;
height: var(--vertical-nav-bar-size);
height: calc(var(--vertical-nav-bar-size) + env(safe-area-inset-bottom));
width: 100%;
padding: 0 1rem;
padding: 0 1rem env(safe-area-inset-bottom) 1rem;
overflow-y: hidden;
overflow-x: auto;

Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, viewport-fit=cover">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="Stremio">
<link rel="icon" type="image/png" sizes="96x96" href="<%= htmlWebpackPlugin.options.faviconsPath %>/icon-96.png">
Expand Down
1 change: 0 additions & 1 deletion src/routes/Addons/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
}

.addons-container {
width: 100%;
height: 100%;
background-color: transparent;

Expand Down
2 changes: 1 addition & 1 deletion src/routes/Board/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
position: absolute;
left: 0;
right: 0;
bottom: var(--vertical-nav-bar-size);
bottom: calc(var(--vertical-nav-bar-size) + env(safe-area-inset-bottom));
height: 4rem;
}
}
Expand Down
1 change: 0 additions & 1 deletion src/routes/Discover/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
}

.discover-container {
width: 100%;
height: 100%;
background-color: transparent;

Expand Down
1 change: 0 additions & 1 deletion src/routes/Library/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
}

.library-container {
width: 100%;
height: 100%;
background-color: transparent;

Expand Down
2 changes: 2 additions & 0 deletions src/routes/MetaDetails/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
z-index: 1;
flex: none;
align-self: stretch;
margin: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
}

.metadetails-content {
Expand All @@ -31,6 +32,7 @@
z-index: 0;
display: flex;
flex-direction: row;
margin: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);

.vertical-nav-bar {
--vertical-nav-bar-size: 6rem;
Expand Down
1 change: 0 additions & 1 deletion src/routes/Search/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
}

.search-container {
width: 100%;
height: 100%;
background-color: transparent;

Expand Down
1 change: 0 additions & 1 deletion src/routes/Settings/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
}

.settings-container {
width: 100%;
height: 100%;
background-color: transparent;

Expand Down

0 comments on commit ea8a4c7

Please sign in to comment.