Skip to content

Commit

Permalink
[Gepardec/mega#749] adapt loading and card for bills
Browse files Browse the repository at this point in the history
  • Loading branch information
gattrCh committed Jun 3, 2024
1 parent f970e33 commit 0d9c63c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<mat-card appearance="raised" class="fill-parent">
<mat-card appearance="raised" class="fill-parent bills-card">
<mat-card-header>
<mat-card-title>
<ngx-skeleton-loader *ngIf="!billInfo else title"
Expand Down Expand Up @@ -52,7 +52,10 @@
</div>
</ng-container>

<div *ngIf=" billInfo && billInfo.employeeHasCreditCard" class="credit-card-warning">
<ng-container *ngIf="!billInfo && billInfo?.employeeHasCreditCard">
<ngx-skeleton-loader [theme]="{ height: '46px' }"></ngx-skeleton-loader>
</ng-container>
<div *ngIf=" billInfo && billInfo?.employeeHasCreditCard" class="credit-card-warning">
<app-credit-card-warning></app-credit-card-warning>
</div>
</mat-card-content>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
@import 'styles/colors';

.mat-card {
width: 100%;
border-radius: 0;

.mat-card-header {
background-color: #f0f0f0;
width: 100%;
border-top-left-radius: 0;
border-top-right-radius: 0;
.bills-card {
mat-card-content{
/* override default material padding */
padding-bottom: 0;
}
}

Expand Down Expand Up @@ -43,7 +38,6 @@
padding-right: 16px;
}


.mat-column-icon {
flex: 0 0 5%;
justify-content: right;
Expand All @@ -57,5 +51,22 @@
.credit-card-warning {
display: flex;
justify-content: flex-start;
margin-top: 8px;
}

@media screen and (min-width: 1664px){
.credit-card-warning {
margin-top: 30px;
}
}

@media (min-width: 1264px) and (max-width: 1664px) {
.credit-card-warning{
margin-top: 10px;
}
}

@media screen and (max-width: 1264px){
.credit-card-warning{
margin-top: 25px;
}
}

0 comments on commit 0d9c63c

Please sign in to comment.