Angular 2 material mat-tab size

后端 未结 5 1511
温柔的废话
温柔的废话 2021-02-04 01:35

I have the following piece of code

  
    
5条回答
  •  误落风尘
    2021-02-04 02:09

    If you want to control the height and width of angular material tabs use styles followed by ::ng-deep. Check the below code to modify height and width

    ::ng-deep .mat-tab-label
    {
      height: 27px !important;
      min-height: 5px!important;
      margin: 3px!important;
      width: 90px!important;
      min-width: 5px!important;
    }
    

提交回复
热议问题