I'm a newbie UI developer, with not a lot of experience in styling html. Can someone show me how to make my column within the mat-table
smaller? I'm not understanding why I can't make this work.
Here's my html:
<ng-container matColumnDef="edit">
<mat-header-cell *matHeaderCellDef></mat-header-cell>
<mat-cell *matCellDef="let row">
<button mat-raised-button>Edit</button>
</mat-cell>
</ng-container>
And the scss (I picked some random width just to see if it would work):
.mat-column-edit {
width: 300px !important;
}
Seems like it should be pretty simple, but it isn't!