Skip to content

Commit 4f40276

Browse files
committed
fix actions column width of datatable
1 parent 2574d6f commit 4f40276

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

resources/js/ui/Table/Table.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@
125125
</span>
126126
</th>
127127

128-
<th v-show="hasSelections" :colspan="displayable.length">
128+
<th v-show="hasSelections" :colspan="displayable.length > 2 ? displayable.length - 1 : displayable.length">
129129
<span class="table__heading">
130130
{{ this.selected.length }} record{{ this.selected.length > 1 ? 's' : '' }} selected
131131
</span>
132132
</th>
133133

134-
<th v-show="hasSelections" class="w-48">
134+
<th v-show="hasSelections" :colspan="displayable.length > 2 ? 2 : 1" class="w-48">
135135
<div class="bulk-actions">
136136
<select name="bulk-actions" id="bulk-actions" class="field-select field-select--sm field-select--bordered" v-model="action" @change="showBulkActionConfirmation = true">
137137
<option selected disabled :value="null">Bulk Actions</option>

0 commit comments

Comments
 (0)