I want resize the width of my table using angular material. I have obtained this:
My columns are dynamic:
<ng-container *ngFor="let column of dataTable.getValues() ; let colIndex = index" matColumnDef="{{column.label}}" class="columnSize">
<th mat-header-cell *matHeaderCellDef mat-sort-header> {{column.label}}</th>
<td mat-cell *matCellDef="let row" [style.color]="color"> {{row[colIndex].value }} </td>
</ng-container>
and I have tried different solution to resize my columns width, for example:
.mat-header-cell {
flex: 0 0 75px !important;
}
But the results is the same.

