How to customize mat-select dropdown position?

后端 未结 4 774
难免孤独
难免孤独 2020-12-17 10:38

Its been couple of days since i have not found the solution for this. As there is an option for mat-menu that is overlaptrigger property but there is no property to perform

4条回答
  •  感动是毒
    2020-12-17 11:29

    //Add this

    .mat-select-panel-wrap{
        position: relative;
        top: 26px;
    }
    
    .mat-select-panel-wrap .mat-select-panel{
        min-width: calc(100% + 12px) !important;
        transform: translateX(4px) !important
    }
    

    //Change 26px, 12px and 4px to what suit you.

提交回复
热议问题