Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

182
Views
4 Md-selects in flexbox/md-toolbar breaks responsive design

I have the following code:

<form novalidate [formGroup]="form">
    <div *ngIf="data">
        <div fxLayout="row">

        <md-select placeholder="Make" formControlName="make.name" (change)="onUpdate(form.value)" fxFlex="25">
            <md-option *ngFor="let make of data.makes" [value]="make">
                {{ make }}
            </md-option>
        </md-select>


        <md-select placeholder="Model" formControlName="model.name" (change)="onUpdate(form.value)" fxFlex="25">
            <md-option *ngFor="let model of data.models" [value]="model">
                {{ model }}
            </md-option>
        </md-select>


        <md-select placeholder="Year" formControlName="year.year" (change)="onUpdate(form.value)" fxFlex="25">
            <md-option *ngFor="let year of data.years" [value]="year">
                {{ year }}
            </md-option>
        </md-select>

        <md-select placeholder="Trim" formControlName="trim" (change)="onUpdate(form.value)" fxFlex="25">
            <md-option *ngFor="let trim of data.trim" [value]="trim">
                {{ trim }}
            </md-option>
        </md-select>
        </div>
    </div>
</form>

Which produces the following result:

Desktop Toolbar

Ideally, it's supposed to stretch across the toolbar evenly.
Why doesn't it do that?

Additionally, on mobile:

Bad Mobile

As you can see, it stretches beyond the toolbar. Yikes!

By inspecting the element, I noticed the following:

.mat-select-trigger {
    min-width: 112px;
}

By turning it off, it makes the md-select elements smaller, but doesn't resize accordingly. How do I fix this?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!