Currently, I am utilizing Bootstrap Vue table with Vue v2 and implementing a prop (sticky-header="600px"
) to establish the table height:
<page-wrapper>
<page-header> </page-header>
<div class="content">
<b-card>
<b-row>
<b-col></b-col>
<b-col>
<b-form-group>
<b-form-radio-group></b-form-radio-group>
</b-form-group>
</b-col>
<b-col></b-col>
</b-row>
<div class="table-responsive">
<b-table-simple class="text-left border-left multiple-headers" small sticky-header="600px" bordered no-border-collapse>
<b-thead head-variant="light">
<b-tr>
<b-th></b-th>
</b-tr>
<b-tr>
<b-th></b-th>
</b-tr>
</b-thead>
<b-tbody>
<b-tr>
<b-td> </b-td>
</b-tr>
</b-tbody>
</b-table-simple>
</div>
</b-overlay>
</b-card>
</div>
</page-wrapper>
However, the appearance is not ideal on larger screens due to excessive spacing at the bottom. To address this issue, I am looking for a way to adjust the table height relative to the screen height. What would be the most effective method to calculate the necessary space around the table body (top and bottom) for all screen sizes and then apply calc(100vh - XXpx)
?