SES-165 updated css

This commit is contained in:
Natalia Gawron 2021-01-21 20:50:29 +01:00
parent 44e6fd20b9
commit c31075e54f
6 changed files with 71 additions and 8 deletions

View File

@ -41,3 +41,23 @@ th {
text-align: center; text-align: center;
align-items: center align-items: center
} }
th.mat-header-cell {
border-bottom: #e8cca7
solid 1px;
}
td.mat-cell {
border-bottom: #e8cca7
solid 1px;
}
table.mat-table {
margin-left: 7%;
}
@media (max-width: 365px) {
table.mat-table {
margin-left: 0%;
}
}

View File

@ -21,12 +21,12 @@
</mat-list-item> </mat-list-item>
<mat-list-item (click)="SwitchMiddleComponent('PlayerWeaponsTableComponent')"> <mat-list-item (click)="SwitchMiddleComponent('PlayerWeaponsTableComponent')">
<mat-icon [class.active]="selected" matListIcon>local_mall</mat-icon> <mat-icon [class.active]="selected" matListIcon><i class="ra ra-daggers "></i></mat-icon>
<a matLine>Weapons</a> <a matLine>Weapons</a>
</mat-list-item> </mat-list-item>
<mat-list-item (click)="SwitchMiddleComponent('PlayerArmorsTableComponent')"> <mat-list-item (click)="SwitchMiddleComponent('PlayerArmorsTableComponent')">
<mat-icon [class.active]="selected" matListIcon>local_mall</mat-icon> <mat-icon [class.active]="selected" matListIcon><i class="ra ra-vest"></i></mat-icon>
<a matLine>Armors</a> <a matLine>Armors</a>
</mat-list-item> </mat-list-item>
@ -35,15 +35,17 @@
<a matLine>Other equipment</a> <a matLine>Other equipment</a>
</mat-list-item> </mat-list-item>
<mat-list-item> <!--Uncomment when Spells will be implemented-->
<!--<mat-list-item>
<mat-icon [class.active]="selected" matListIcon>brightness_4</mat-icon> <mat-icon [class.active]="selected" matListIcon>brightness_4</mat-icon>
<a matLine>Spells</a> <a matLine>Spells</a>
</mat-list-item> </mat-list-item>-->
<mat-list-item> <!--Uncomment when Profile will be implemented-->
<!-- <mat-list-item>
<mat-icon [class.active]="selected" matListIcon>account_circle</mat-icon> <mat-icon [class.active]="selected" matListIcon>account_circle</mat-icon>
<a matLine>Profile</a> <a matLine>Profile</a>
</mat-list-item> </mat-list-item>-->
<mat-list-item> <mat-list-item>
<mat-icon [class.active]="selected" matListIcon>shopping_cart</mat-icon> <mat-icon [class.active]="selected" matListIcon>shopping_cart</mat-icon>

View File

@ -41,3 +41,23 @@ th {
text-align: center; text-align: center;
align-items: center align-items: center
} }
th.mat-header-cell {
border-bottom: #e8cca7
solid 1px;
}
td.mat-cell {
border-bottom: #e8cca7
solid 1px;
}
table.mat-table {
margin-left: 0%;
}
@media (max-width: 365px) {
table.mat-table {
margin-left: 0%;
}
}

View File

@ -19,7 +19,8 @@
<ng-container matColumnDef="description"> <ng-container matColumnDef="description">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Description </th> <th mat-header-cell *matHeaderCellDef mat-sort-header> Description </th>
<td mat-cell *matCellDef="let row"> {{row.description}} </td> <td mat-cell *matCellDef="let row"> {{row.description}}
</td>
</ng-container> </ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>

View File

@ -41,3 +41,23 @@ th {
text-align: center; text-align: center;
align-items: center align-items: center
} }
th.mat-header-cell {
border-bottom: #e8cca7
solid 1px;
}
td.mat-cell {
border-bottom: #e8cca7
solid 1px;
}
table.mat-table {
margin-left: 10%;
}
@media (max-width: 365px) {
table.mat-table {
margin-left: 3%;
}
}

View File

@ -40,7 +40,7 @@ export class PlayerWeaponsTableComponent implements OnInit {
.pipe(first()) .pipe(first())
.subscribe((characterId) => { .subscribe((characterId) => {
this.equipmentService this.equipmentService
.getCharacterWeapons(characterId) .getCharacterWeapons(1)
.pipe(first()) .pipe(first())
.subscribe( .subscribe(
(result) => { (result) => {