-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/535 header auf mobile (#586)
* add new header * cm * add layout for mobile header * use only one content slot * clean up * revert ehight * finish basic layout * adjust height * fix appereance of default header * fix top padding from overview * clean up * add gap to filters * fix cypress tests * display current quarter * update overview layout logic to bootstrap * optimize styling * hide quarter label if not collapes * clean up and implement review --------- Co-authored-by: Yanick Minder <[email protected]>
- Loading branch information
1 parent
3e3947e
commit d631eaf
Showing
13 changed files
with
83 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 31 additions & 10 deletions
41
frontend/src/app/application-banner/application-banner.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,34 @@ | ||
<pzsh-banner id="okrBanner"> | ||
<img slot="tangram" ngSrc="assets/images/triangles-okr-header.svg" alt="okr-tangram" height="140" width="274" /> | ||
<div slot="content" class="header-content h-100 m-0 pt-3 pb-3 d-flex gap-2 flex-column container-fluid"> | ||
<div class="d-flex align-items-end gap-2"> | ||
<span class="d-flex flex-column"> | ||
<p class="mb-2">Quartal</p> | ||
<app-quarter-filter></app-quarter-filter> | ||
</span> | ||
<app-objective-filter></app-objective-filter> | ||
</div> | ||
<app-team-filter></app-team-filter> | ||
<img alt="okr-tangram" height="140" ngSrc="assets/images/triangles-okr-header.svg" slot="tangram" width="274" /> | ||
<div class="h-100 m-0 d-flex" slot="content"> | ||
<section class="d-none d-md-flex"> | ||
<div class="header-content h-100 m-0 pt-3 pb-3 d-flex gap-2 flex-column container-fluid"> | ||
<div class="d-flex align-items-end gap-2"> | ||
<span class="d-flex flex-column"> | ||
<p class="mb-2">Quartal</p> | ||
<app-quarter-filter></app-quarter-filter> | ||
</span> | ||
<app-objective-filter></app-objective-filter> | ||
</div> | ||
<app-team-filter></app-team-filter> | ||
</div> | ||
</section> | ||
|
||
<section class="m-0 d-sm-flex d-md-none w-100"> | ||
<mat-accordion [displayMode]="'flat'" class="w-100"> | ||
<mat-expansion-panel (closed)="panelOpenState = false" (opened)="panelOpenState = true" id="header-accordion"> | ||
<mat-expansion-panel-header> | ||
<mat-panel-title *ngIf="!panelOpenState" | ||
>{{ (quarterLabel$ | async) || quarterLabel$.getValue() }} | ||
</mat-panel-title> | ||
</mat-expansion-panel-header> | ||
<div class="d-flex gap-2 flex-column"> | ||
<app-quarter-filter (quarterLabel$)="quarterLabel$.next($event)"></app-quarter-filter> | ||
<app-objective-filter></app-objective-filter> | ||
<app-team-filter></app-team-filter> | ||
</div> | ||
</mat-expansion-panel> | ||
</mat-accordion> | ||
</section> | ||
</div> | ||
</pzsh-banner> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
frontend/src/app/application-top-bar/application-top-bar.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +0,0 @@ | ||
@import "_variables"; | ||
|
||
.overviewContainer { | ||
overflow-x: hidden; | ||
padding-left: 2rem; | ||
padding-right: 2rem; | ||
} | ||
|
||
@media screen and (max-width: 500px) { | ||
.overviewContainer { | ||
padding-left: 0; | ||
padding-right: 0; | ||
} | ||
} | ||
|
||
.mt-header-height { | ||
padding-top: $header-height; | ||
background-color: $overview-bg; | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,6 @@ | ||
.team-title { | ||
font-size: 1.5rem; | ||
padding-bottom: 16px; | ||
} | ||
|
||
.column-width { | ||
flex-grow: 1; | ||
min-width: 320px; | ||
max-width: 500px; | ||
max-width: 576px; | ||
flex-wrap: wrap; | ||
} | ||
|
||
@media screen and (max-width: 500px) { | ||
.team-title { | ||
padding-left: 31px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters