I have inserted a mat-card in mat-table and set the width to width: 100%. But when i scroll with overflow: x from left to right not the whole wrapper is filled with the mat-card. Do you have an idea what I have to optimize in CSS?
My Code:
// HTML
<div class="app-table-wrapper">
<table mat-table [dataSource]="dataSource" id="app-table">...</table>
<mat-card class="change-width"></mat-card>
</div>
// CSS
.app-table-wrapper {
position: relative;
background-color: #fbf9f9;
min-width: 200px;
overflow: auto;
padding: 0;
height: 300px;
}
.change-width {
width: 100%;
}