Within my layout, I have a setup where there is a mat-table
on the left side, limited to displaying only 4 rows in height, and a mat-card
on the right side. The goal is to show the content of a selected row next to the table, creating a visual like this:
https://i.sstatic.net/hqQ9J.png
I arranged these elements using a grid layout. However, I encountered an issue where if the content within the mat-card-content
exceeds a certain length, it extends beyond the boundaries and looks unpleasant, as shown here:
https://i.sstatic.net/ESfql.png
Despite my attempts to address this, I have been unsuccessful in finding a solution. How can I adjust the layout to prevent this overflow? If any mathematical calculations are needed for the CSS adjustments, I would appreciate detailed guidance, as I need to implement a similar modification in my own project.
UPDATE: I forgot to include the code snippet, so here is the link.