I'd like to use Material's GridList component to make two column layout. Inside I've placed ExpandPanels, but they are centered in the tile. I need them to fit the horizontal space. Of course I could place a class attribute to the component and set the width, but I'm not sure if this is the best "material" way, to do this. Here my test example:
<mat-grid-list cols="2" ratio="2:1">
<mat-grid-tile>
<mat-expansion-panel [expanded]='true' >
<mat-expansion-panel-header>
<mat-panel-title>
TITLE
</mat-panel-title>
</mat-expansion-panel-header>
<mat-form-field>
<input matInput placeholder="TEST">
</mat-form-field>
</mat-expansion-panel>
</mat-grid-tile>
<mat-grid-tile>
<mat-expansion-panel [expanded]='true'>
<mat-expansion-panel-header>
<mat-panel-title>
TITLE2
</mat-panel-title>
</mat-expansion-panel-header>
<mat-form-field>
<input matInput placeholder="TEST">
</mat-form-field>
</mat-expansion-panel>
</mat-grid-tile>
</mat-grid-list>
I'm quite new to angular and material. I would be happy about some suggestions.