Как заставить mat-option
автоматически выбирать ширину самого длинного элемента в списке.
<div class="col-md-3">
<mat-form-field class="sm-width" appearance="outline">
<mat-label>Дом</mat-label>
<input (input)="InputBuilding($event)" matInput placeholder="№ дома" formControlName="buildingNumber" required maxlength="5" [matAutocomplete]="autoBuilding">
<mat-autocomplete panelClass="mat-auto" #autoBuilding="matAutocomplete">
<mat-option (onSelectionChange)="selectionChange(build)" *ngFor="let build of builds?.result" [value]="build.name">
<span>{{build.typeShort}}. {{build.name}}</span>
</mat-option>
</mat-autocomplete>
</mat-form-field>
<mat-form-field class="sm-width" appearance="outline">
<mat-label>Корпус</mat-label>
<input matInput placeholder="Корпус" formControlName="structure" maxlength="3">
</mat-form-field>
<mat-form-field class="sm-width" appearance="outline">
<mat-label>Квартира</mat-label>
<input matInput placeholder="Квартира / Офис" formControlName="flat" maxlength="4" numbersOnly>
</mat-form-field>
</div>