Fix CResourceList alignment with sort button and add sticky column to th
This commit is contained in:
parent
5002d9887b
commit
56170f3b1a
@ -75,7 +75,7 @@
|
|||||||
<b-button
|
<b-button
|
||||||
v-if="field.field.sort"
|
v-if="field.field.sort"
|
||||||
variant="outline-extra-light"
|
variant="outline-extra-light"
|
||||||
class="text-secondary d-print-none border-0 px-1 ml-1"
|
class="d-inline-flex align-items-center text-secondary d-print-none border-0 px-1 ml-1"
|
||||||
style="margin-right: -0.25rem;"
|
style="margin-right: -0.25rem;"
|
||||||
@click="handleSort(field)"
|
@click="handleSort(field)"
|
||||||
>
|
>
|
||||||
@ -97,6 +97,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #empty>
|
<template #empty>
|
||||||
<p
|
<p
|
||||||
data-test-id="no-matches"
|
data-test-id="no-matches"
|
||||||
@ -360,7 +361,7 @@ export default {
|
|||||||
...select,
|
...select,
|
||||||
...this.fields,
|
...this.fields,
|
||||||
].map(f => {
|
].map(f => {
|
||||||
return { ...f, thClass: `${f.thClass || 'border-0'}`, sortable: false, sort: f.sortable }
|
return { ...f, thClass: `${f.thClass || 'border-0'} table-b-table-default b-table-sticky-column`, sortable: false, sort: f.sortable }
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user