title: How to make mat-select of Angular Material do the line break, in a mobile application?
body: <p>I already have the mat-select built with Angular Material, but when the big text I would like to go to the next line, so that it shows the full text.</p>
  
  <p>This is the HTML code:</p>
  
  <pre><code>&lt;mat-select [formControlName]="element.control"&gt;
      &lt;mat-option *ngFor="let option of elements" [value]="option"&gt;
        {{option}}
      &lt;/mat-option&gt;
  &lt;/mat-select&gt;
  </code></pre>
  
  <p>This is how it looks in the application:</p>
  
  <p><a href="https://i.stack.imgur.com/kWam5.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kWam5.jpg" alt="enter image description here"></a></p>
  
  <p>Making the changes recommended by ビ ー ト フ リ ー ク ス:</p>
  
  <p>try add this on global.scss :</p>
  
  <pre><code>.mat-select-value {
      text-align: center;
      padding-left: 5px;
  }
  
  .width-mat {
      width: 30px;
      font-size: inherit;
      line-height: 3em;
      height: unset;
  }
  
  .mat-select-panel .mat-option {
      font-size  : inherit;
      line-height: 2em;
      height     : unset;
      white-space: unset;
      border-bottom: var(--Gray1) solid 1px;
  }
  </code></pre>
  
  <p>on your html add the panelClass :</p>
  
  <pre><code>&lt;mat-select 
      panelClass="width-mat" 
      disableOptionCentering
      disableRipple&gt;
      &lt;mat-option *ngFor="let option of elements" value={{option}}&gt;
                {{option}
      &lt;/mat-option&gt;
  &lt;/mat-select&gt;
  </code></pre>
  
  <p>It looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/KjLaz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KjLaz.png" alt="enter image description here"></a></p>