Today, I am struggling with a piece of code. Whenever I click on the Details button, it is supposed to open a mat-menu
. However, for some reason, I cannot seem to adjust the padding or width of the menu:
<div id="box-upload" [hidden]="hiddenBoxUpload" *ngIf="filesExist">
<button mat-raised-button color="primary" [matMenuTriggerFor]="listFiles">Details</button>
<mat-menu class="filesList" #listFiles="matMenu">
<div *ngFor="let key of listkey">
<div *ngIf="detailsExist">
<!-- some stuff like mat-progress-bar and span>
</div>
</div>
</mat-menu>
</div>
CSS code:
.filesList {
width: auto;
padding: 15px;
}
I'm looking for ways to customize the default padding and width of a mat-menu
. Any suggestions?