in my case it was fixed with this code:
.mat-mdc-form-field-flex{ height: 46px; /* Set your height here */ }