Skip to content

Commit

Permalink
Fix height for mobile safari not to overlap URL bar
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshiokatsuneo committed Feb 17, 2025
1 parent 71902e5 commit 6e303aa
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion client/app/assets/css/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ body {
display: table;
width: 100%;
padding: 10px;
height: calc(100vh - 116px);
height: calc(100% - 116px);
}

@media (min-width: 992px) {
Expand Down
4 changes: 2 additions & 2 deletions client/app/assets/less/inc/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ html {

html,
body {
min-height: 100vh;
height: 100%;
}

body {
Expand All @@ -35,7 +35,7 @@ body {
}

#application-root {
min-height: 100vh;
height: 100%;
}

#application-root,
Expand Down
4 changes: 2 additions & 2 deletions client/app/assets/less/inc/login.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
vertical-align: middle;
display: inline-block;
width: 1px;
height: 100vh;
height: 100%;
}
}

Expand Down Expand Up @@ -135,4 +135,4 @@

}
}

4 changes: 2 additions & 2 deletions client/app/assets/less/redash/query.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ body.fixed-layout {
padding-bottom: 0;

width: 100vw;
height: 100vh;
height: 100%;

.application-layout-content > div {
display: flex;
Expand Down Expand Up @@ -90,7 +90,7 @@ body.fixed-layout {
.embed__vis {
display: flex;
flex-flow: column;
height: calc(~'100vh - 25px');
height: calc(~'100% - 25px');

> .embed-heading {
flex: 0 0 auto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ body #application-root {
flex-direction: row;
justify-content: stretch;
padding-bottom: 0 !important;
height: 100vh;
height: 100%;

.application-layout-side-menu {
height: 100vh;
height: 100%;
position: relative;

@media @mobileBreakpoint {
Expand Down Expand Up @@ -47,6 +47,10 @@ body #application-root {
}
}

body > section {
height: 100%;
}

body.fixed-layout #application-root {
.application-layout-content {
padding-bottom: 0;
Expand Down
2 changes: 1 addition & 1 deletion client/app/pages/dashboards/PublicDashboardPage.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}

> .container {
min-height: calc(100vh - 95px);
min-height: calc(100% - 95px);
}

.loading-message {
Expand Down

0 comments on commit 6e303aa

Please sign in to comment.