Skip to content

Commit b6ce15e

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

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

resources/js/ui/Table/Table.vue

Lines changed: 3 additions & 3 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>
@@ -141,7 +141,7 @@
141141
</div>
142142
</th>
143143

144-
<th v-show="hasActions && ! hasSelections" class="w-48">&nbsp;</th>
144+
<th v-show="hasActions && ! hasSelections" class="w-20">&nbsp;</th>
145145
</tr>
146146
</thead>
147147

0 commit comments

Comments
 (0)