Un peu de changement sur la largeur et sur

la hauteur
This commit is contained in:
Sébastien André
2020-04-29 17:01:56 +02:00
parent 5f89b51db1
commit d4b10c2b72
4 changed files with 49 additions and 41 deletions

View File

@@ -17,7 +17,6 @@
.navigation { .navigation {
position: absolute; position: absolute;
width: 200px; width: 200px;
/* height: 100%; */
z-index: 101; z-index: 101;
background-color: grey; background-color: grey;
padding: 5px; padding: 5px;
@@ -39,6 +38,11 @@
text-decoration: none; text-decoration: none;
cursor: pointer; cursor: pointer;
color: #424242; color: #424242;
vertical-align: middle;
}
.navigation .mat-icon {
vertical-align: middle;
} }
.navigation .splitter { .navigation .splitter {

View File

@@ -1,4 +1,5 @@
<div *ngIf="dataSourceTable != null else loading"> <div class="content">
<div *ngIf="dataSourceTable != null else loading">
<button mat-raised-button color="accent" (click)="openDialogToAdd()">Add a aircraft</button> <button mat-raised-button color="accent" (click)="openDialogToAdd()">Add a aircraft</button>
<table mat-table [dataSource]="dataSourceTable"> <table mat-table [dataSource]="dataSourceTable">
@@ -15,9 +16,10 @@
<tr mat-header-row *matHeaderRowDef="displayedColumns; sticky: true"></tr> <tr mat-header-row *matHeaderRowDef="displayedColumns; sticky: true"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr> <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table> </table>
</div> </div>
<mat-paginator [length]="resultsLength" [pageSize]="5"></mat-paginator> <mat-paginator [length]="resultsLength" [pageSize]="5"></mat-paginator>
<ng-template #loading> <ng-template #loading>
<mat-progress-spinner [mode]="'indeterminate'"></mat-progress-spinner> <mat-progress-spinner [mode]="'indeterminate'"></mat-progress-spinner>
</ng-template> </ng-template>
</div>

View File

@@ -1,4 +1,5 @@
<div *ngIf="dataSourceTable != null else loading"> <div class="content">
<div *ngIf="dataSourceTable != null else loading">
<button mat-raised-button color="accent" (click)="openDialogToAdd()">Add a jump type</button> <button mat-raised-button color="accent" (click)="openDialogToAdd()">Add a jump type</button>
<table mat-table [dataSource]="dataSourceTable"> <table mat-table [dataSource]="dataSourceTable">
@@ -15,9 +16,10 @@
<tr mat-header-row *matHeaderRowDef="displayedColumns; sticky: true"></tr> <tr mat-header-row *matHeaderRowDef="displayedColumns; sticky: true"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr> <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table> </table>
</div> </div>
<mat-paginator [length]="resultsLength" [pageSize]="20"></mat-paginator> <mat-paginator [length]="resultsLength" [pageSize]="20"></mat-paginator>
<ng-template #loading> <ng-template #loading>
<mat-progress-spinner [mode]="'indeterminate'"></mat-progress-spinner> <mat-progress-spinner [mode]="'indeterminate'"></mat-progress-spinner>
</ng-template> </ng-template>
</div>

View File

@@ -2,10 +2,10 @@
html, html,
body { body {
/* height: 100%; */ min-height: 100vh;
height: 100vh;
width: 100vw; width: 100vw;
box-sizing: border-box; box-sizing: border-box;
overflow: auto;
} }
body { body {