In a grid layout it can be as simple as setting overflow:auto
on the tab control. I do something like this:
.container { display: grid; grid-template-rows: auto 1fr; gap: 1em; mat-tab-group { overflow: auto; }}
Where .container
contains the toolbar and tab group.
Even if I have a mat-table
inside the grid it correctly sizes. Sorry I don't have time to make a complete example now.