Skip to content

Commit 30f3107

Browse files
committed
fix pull-error in table class
1 parent 1991553 commit 30f3107

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

resources/views/bootstrap-4/components/table/table.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@props(['customSecondaryHeader' => false, 'useHeaderAsFooter' => false, 'customFooter' => false])
22

33
<div class="{{ $this->responsive ? 'table-responsive' : '' }}">
4-
<table {{ $attributes->except('wire:sortable') }} class="table table-striped">
4+
<table {{ $attributes->except(['wire:sortable','class']) }} class="{{trim($attributes->get("class")) ?: 'table table-striped'}}">
55
<thead>
66
<tr>
77
{{ $head }}

resources/views/bootstrap-5/components/table/table.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
@props(['customSecondaryHeader' => false, 'useHeaderAsFooter' => false, 'customFooter' => false])
22

33
<div class="{{ $this->responsive ? 'table-responsive' : '' }}">
4-
<table {{ $attributes->except('wire:sortable') }} class="table table-striped">
4+
@dump($attributes)
5+
<table {{ $attributes->except(['wire:sortable','class']) }} class="{{trim($attributes->get("class")) ?: 'table table-striped'}}">
56
<thead>
67
<tr>
78
{{ $head }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@props(['customSecondaryHeader' => false, 'useHeaderAsFooter' => false, 'customFooter' => false])
22

33
<div class="align-middle min-w-full overflow-x-auto shadow overflow-hidden rounded-none md:rounded-lg">
4-
<table {{ $attributes->except('wire:sortable') }} class="min-w-full divide-y divide-gray-200 dark:divide-none">
4+
<table {{ $attributes->except(['wire:sortable','class']) }} class="{{trim($attributes->get("class")) ?: 'min-w-full divide-y divide-gray-200 dark:divide-none'}}">
55
<thead>
66
<tr>
77
{{ $head }}

0 commit comments

Comments
 (0)