Skip to content

Commit

Permalink
fix: header height on grw app
Browse files Browse the repository at this point in the history
  • Loading branch information
bastyen committed Oct 15, 2024
1 parent 9640a4d commit 5e4f0be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/grw-app/grw-app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ grw-app {

.grw-header-container,
.grw-large-view-header-container {
height: var(--header-height);
height: calc(var(--header-height) + var(--header-with-offline) + var(--header-with-languages));
.grw-arrow-back-container {
display: flex;
align-items: center;
Expand Down Expand Up @@ -92,7 +92,7 @@ grw-app {
}

.grw-content-treks {
height: calc(100% - var(--header-height) - var(--header-with-languages));
height: calc(100% - var(--header-height) - var(--header-with-languages) - var(--header-with-offline));
}

.grw-content-trek {
Expand Down
9 changes: 4 additions & 5 deletions src/components/grw-app/grw-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -468,14 +468,13 @@ export class GrwApp {
'--app-width': this.appWidth,
'--app-height': this.appHeight,
'--header-height':
Number(this.treks) + Number(this.touristicContents) + Number(this.touristicEvents) + Number(this.outdoor) > 1
? this.enableOffline && !this.showTrek && !this.showTouristicContent && !this.showTouristicEvent
? '188px'
: '64px'
: this.enableOffline && !this.showTrek && !this.showTouristicContent && !this.showTouristicEvent
this.showTrek && this.showTouristicContent && this.showTouristicEvent
? '116px'
: Number(this.treks) + Number(this.touristicContents) + Number(this.touristicEvents) + Number(this.outdoor) > 1
? '148px'
: '64px',
'--header-with-languages': this.languages.split(',').length > 1 ? '38px' : '0px',
'--header-with-offline': this.enableOffline ? '48px' : '0px',
'--border-radius': this.rounded ? '' : '0px',
}}
>
Expand Down

0 comments on commit 5e4f0be

Please sign in to comment.