Switch some large tables to a fixed layout

maybe this helps with loading performance a bit
This commit is contained in:
Christoph Reiter
2022-12-26 18:02:56 +01:00
parent 7b399e56bc
commit ed5c086fe0
3 changed files with 24 additions and 4 deletions

View File

@@ -8,7 +8,12 @@
<h6 class="card-subtitle mb-2 text-muted">{{ sources|length }} base packages</h6>
</div>
<div class="card-body overflow-auto">
<table class="table table-hover table-sm">
<table class="table table-hover table-sm" style="table-layout: fixed; width:100%;">
<colgroup>
<col style="width: 25%">
<col style="width: 15%">
<col style="width: 60%">
</colgroup>
<thead>
<tr>
<th>Base Package</th>

View File

@@ -25,7 +25,12 @@
<br>
<table class="table table-hover table-sm">
<table class="table table-hover table-sm" style="table-layout: fixed; width:100%;">
<colgroup>
<col style="width: 25%">
<col style="width: 15%">
<col style="width: 60%">
</colgroup>
<thead>
<tr>
<th>Package</th>

View File

@@ -47,7 +47,12 @@
<h6 class="card-subtitle mb-2 text-muted">Base packages matching the search query</h6>
</div>
<div class="card-body overflow-auto">
<table class="table table-hover table-sm">
<table class="table table-hover table-sm" style="table-layout: fixed; width:100%;">
<colgroup>
<col style="width: 25%">
<col style="width: 15%">
<col style="width: 60%">
</colgroup>
<thead>
<tr>
<th>Base Package</th>
@@ -76,7 +81,12 @@
<h6 class="card-subtitle mb-2 text-muted">Packages matching the search query</h6>
</div>
<div class="card-body overflow-auto">
<table class="table table-hover table-sm">
<table class="table table-hover table-sm" style="table-layout: fixed; width:100%;">
<colgroup>
<col style="width: 25%">
<col style="width: 15%">
<col style="width: 60%">
</colgroup>
<thead>
<tr>
<th>Package</th>