I have implemented tables within cards using a CDN.
While the table looks fine in wide widths, it does not resize to fill the entire width when squeezed.
Below is the HTML code:
<div class="card table-responsive">
<div class="card-header">
<i class="fas fa-table me-1"></i>
DataTable Example
</div>
<div class="card-body">
<table class="table table-hover text-center" id="table_summary">
<!-- I FILL THIS TABLE USING FLASK/JINJA2 -->
</table>
</div>
</div>
The full table inside the card appears fine.
https://i.sstatic.net/m0z5w.png
The resized table looks good on the left side.
https://i.sstatic.net/iQlyR.png
However, the card header does not expand to the full width when scrolling right.
https://i.sstatic.net/h2JlJ.png
Does anyone have suggestions on making the card header responsive as well?