Currently, I am in the process of designing a responsive layout using Bootstrap 5.3 which consists of a NavBar, SideBar, ContentPanel, and StatusBar. The goal is to ensure that the application always occupies 100% of the view-height and view-width, displaying all necessary information without triggering page scrollbars!
Within the ContentPanel, there is an element at the top, a table containing dynamic values, and another element at the bottom. I aim for the table to utilize as much height as possible without displacing the element below it or extending beyond the viewport, impacting the StatusBar!
Everything looks good when there are only a few rows in the table, like this:
https://i.sstatic.net/TzNrx.png
However, issues arise as the table accumulates more rows: the table starts pushing the element below it and the StatusBar out of the viewport, triggering a vertical scrollbar for the entire page. An example of this is shown here:
https://i.sstatic.net/5YzyJ.png
If the content within the table exceeds the size of the ContentPanel, I wish for a scrollbar to be visible inside the table itself, confined within the ContentPanel. This way, users can scroll through the table rows without losing sight of the StatusBar. The table should occupy the remaining height of the ContentPanel after the other elements have been rendered.
Thus far, I have only managed to achieve this by setting a maximum height on the table, but this solution compromises responsiveness, as illustrated here:
[
Would appreciate any assistance with this dilemma. Here is my example on StackBlitz: https://stackblitz.com/edit/jyee1m?file=index.html