“Largura do CSS de seleção de tanta” Respostas de código

Altere o tamanho de seleção de tapete

@Component({
  selector: 'app-new-figures-machine',
  templateUrl: './new-figures-machine.component.html',
  styleUrls: ['./new-figures-machine.component.css'],
  //add this to enable change style
  encapsulation: ViewEncapsulation.None,
})

.mat-select-panel
{
    min-width: calc(100% + 17px) !important;
}
Perfect Peccary

Largura do CSS de seleção de tanta

<mat-select 
    panelClass="width-mat" 
    disableOptionCentering
    disableRipple>
    <mat-option *ngFor="let option of elements" value={{option}}>
              {{option}
    </mat-option>
</mat-select>
Depressed Dingo

Largura do CSS de seleção de tanta

.mat-select-value {
    text-align: center;
    padding-left: 5px;
}

.width-mat {
    width: 30px;
    font-size: inherit;
    line-height: 2em;
    height: unset;
}

.mat-select-panel .mat-option {
    font-size  : inherit;
    line-height: 1em;
    height     : unset;
    white-space: unset;
}
Depressed Dingo

Respostas semelhantes a “Largura do CSS de seleção de tanta”

Perguntas semelhantes a “Largura do CSS de seleção de tanta”

Mais respostas relacionadas para “Largura do CSS de seleção de tanta” em CSS

Procure respostas de código populares por idioma

Procurar outros idiomas de código