Skip to content

Commit ffd3961

Browse files
committed
Don't like bulk checks on mobile
Fix colspan
1 parent 5a18fc1 commit ffd3961

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,9 @@ The final result would look like:
546546

547547
## To-do/Roadmap
548548

549-
- [ ] Test Suite
550549
- [ ] Bootstrap Templates
550+
- [ ] Test Suite
551+
- [ ] Column Search
551552

552553
## Changelog
553554

resources/views/tailwind/includes/table.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<x-livewire-tables::table>
22
<x-slot name="head">
33
@if (count($bulkActions))
4-
<x-livewire-tables::table.heading class="pr-0 w-8 hidden md:table-cell">
4+
<x-livewire-tables::table.heading>
55
<div class="flex rounded-md shadow-sm">
66
<input
77
wire:model="selectPage"
@@ -31,7 +31,7 @@ class="rounded-md shadow-sm border-cool-gray-300 block transition duration-150 e
3131
<x-slot name="body">
3232
@if (count($bulkActions) && $selectPage && $rows->total() > $rows->count())
3333
<x-livewire-tables::table.row wire:key="row-message" class="bg-primary-50">
34-
<x-livewire-tables::table.cell colspan="8">
34+
<x-livewire-tables::table.cell :colspan="count($bulkActions) ? count($columns) + 1 : count($columns)">
3535
@unless ($selectAll)
3636
<div>
3737
<span>{!! __('You have selected <strong>:count</strong> users, do you want to select all <strong>:total</strong>?', ['count' => $rows->count(), 'total' => number_format($rows->total())]) !!}</span>
@@ -68,7 +68,7 @@ class="ml-1 text-blue-600 underline text-cool-gray-700 text-sm leading-5 font-me
6868
class="{{ $index % 2 === 0 ? 'bg-white' : 'bg-gray-50' }}"
6969
>
7070
@if (count($bulkActions))
71-
<x-livewire-tables::table.cell class="pr-0 hidden md:table-cell">
71+
<x-livewire-tables::table.cell>
7272
<div class="flex rounded-md shadow-sm">
7373
<input
7474
wire:model="selected"

0 commit comments

Comments
 (0)