I am dealing with a mat-dialog that contains a mat-stepper. Within this stepper, there is a step that includes a form with various elements such as a list, mat-card, and table. I need these elements to always fill the height of the dialog. Specifically, I want the heights of the table and the list on the left side of the table to adjust according to the dialog's height. The mat-card, which appears when an item in the list is selected, should be positioned at the bottom left of the dialog. The list above it should either display all elements (with possible scroll bar) or show a scroll bar if there isn't enough space. Similarly, the table should show all elements if space allows or display a scroll bar. There should be no overflow requiring scrolling within the dialog.
A colleague tried using
max-height: calc(90vh - <x>px)
but it didn't work well. How can I achieve this properly?
Here is a link to a stackblitz illustrating the issue: Stackblitz
If my question is unclear, please let me know so I can provide more detail.