I am facing an issue with my project that has a popover (ng-bootstrap) similar to what I need. The problem is that the tooltips and popovers are not flexible when it comes to resizing the page. To address this, I attempted to put a mat-grid (which works perfectly for me) inside the popover, but it does not behave as expected. The mat-grid shrinks when I adjust the browser width, but the rows are not properly separated as they should be. I want the popover to be more flexible in size. How can I achieve this using either mat-grid or another solution?
Below are some examples of mat-grid layouts. When I make the page smaller, the popover appears too large compared to how Google's layout adjusts its size.
https://i.sstatic.net/kDdOT.jpg
Here is a demo on stackblitz: https://stackblitz.com/edit/angular-nsqsbi-8xn4rg?file=app/main/GridList/grid-list-overview-example.html
I used Bootstrap row and column classes inside the popover body, and I had to comment out the mat-grid part on stackblitz because it was not functioning correctly.
<mat-grid-list cols="1" rowHeight="5:1">
<mat-grid-tile>1</mat-grid-tile>
<mat-grid-tile>2</mat-grid-tile>
</mat-grid-list>