Skip to content

Commit 906b924

Browse files
committed
Merge branch 'swap-inline-style-with-tailwind-class' of https://github.com/Enaah/laravel-livewire-tables into Enaah-swap-inline-style-with-tailwind-class
2 parents cd08fdf + 2235fca commit 906b924

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

resources/views/tailwind/components/table/row.blade.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
@endif
88

99
<tr
10-
{{ $attributes->merge($customAttributes) }}
10+
$attributes->merge($customAttributes)->class([
11+
'h-auto block border-t-4 md:border-t-0 py-4 px-2 md:p-0 md:table-row w-screen',
12+
'cursor-pointer' => $url
13+
]) }}
1114

1215
@if ($url)
1316
onclick="window.open('{{ $url }}', '{{ $target }}')"
14-
style="cursor:pointer"
1517
@endif
1618
>
1719
{{ $slot }}

0 commit comments

Comments
 (0)