angular 5 material - form fields stuck at 180px

后端 未结 6 1257
感动是毒
感动是毒 2020-12-29 01:26

Ive create a form in a dialog using material forms but I cant seem to get the inputs to be wider than 180px despite following numerous examples including https://material.an

6条回答
  •  悲&欢浪女
    2020-12-29 01:27

    The solution I found was this one into general style.css

    mat-form-field {
      margin-left: 2.5rem;
      width: calc(100% - 2.5rem);
    }
    

提交回复
热议问题