Based on this issue adding table-layout: fixed;
to table tag in styles.scss file fixed my issues
table
{
table-layout: fixed !important;
width: 100% !important;
}
If you also use mat-table
and you don't want mat-table layout to be fixed, add the following css to styles.scss
table
{
table-layout: fixed !important;
width: 100% !important;
}
.mat-table
{
table-layout: auto !important;
width: 100% !important;
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…