Browse Source

Improve tabs on iOS (Add to Home Screen)

pull/2811/head
Thomas Kaul 2 years ago
parent
commit
ca7d56cf1b
  1. 6
      apps/client/src/app/app.component.scss
  2. 8
      apps/client/src/styles.scss

6
apps/client/src/app/app.component.scss

@ -2,7 +2,7 @@
:host { :host {
display: block; display: block;
min-height: 100vh; min-height: 100svh;
&.has-info-message { &.has-info-message {
header { header {
@ -30,7 +30,7 @@
} }
main { main {
min-height: calc(100vh - 2 * var(--mat-toolbar-standard-height)); min-height: calc(100svh - 2 * var(--mat-toolbar-standard-height));
} }
} }
@ -44,7 +44,7 @@
} }
main { main {
min-height: calc(100vh - var(--mat-toolbar-standard-height)); min-height: calc(100svh - var(--mat-toolbar-standard-height));
} }
} }

8
apps/client/src/styles.scss

@ -385,7 +385,7 @@ ngx-skeleton-loader {
.has-info-message { .has-info-message {
.page.has-tabs { .page.has-tabs {
height: calc(100vh - 2 * var(--mat-toolbar-standard-height)); height: calc(100svh - 2 * var(--mat-toolbar-standard-height));
} }
} }
@ -505,6 +505,8 @@ ngx-skeleton-loader {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow-y: auto; overflow-y: auto;
padding-bottom: env(safe-area-inset-bottom);
padding-bottom: constant(safe-area-inset-bottom);
.fab-container { .fab-container {
bottom: 2rem; bottom: 2rem;
@ -520,9 +522,7 @@ ngx-skeleton-loader {
} }
&.has-tabs { &.has-tabs {
height: calc(100vh - var(--mat-toolbar-standard-height)); height: calc(100svh - var(--mat-toolbar-standard-height));
padding-bottom: env(safe-area-inset-bottom);
padding-bottom: constant(safe-area-inset-bottom);
.fab-container { .fab-container {
@media (max-width: 575.98px) { @media (max-width: 575.98px) {

Loading…
Cancel
Save