Skip to content

Commit

Permalink
remove unnecessary count colspan
Browse files Browse the repository at this point in the history
  • Loading branch information
luanfreitasdev committed May 27, 2024
1 parent d58fab7 commit f981fda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion resources/views/components/table/th-empty.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class="{{ data_get($theme, 'table.trBodyClass') }}"
<th
class="{{ data_get($theme, 'table.tdBodyEmptyClass') }}"
style="{{ data_get($theme, 'table.tdBodyEmptyStyle') }}"
colspan="{{ ($checkbox ? 1 : 0) + count($columns) + (data_get($setUp, 'detail.showCollapseIcon') ? 1 : 0) }}"
colspan="999"
>
{!! $this->processNoDataLabel() !!}
</th>
Expand Down
7 changes: 3 additions & 4 deletions src/Themes/Tailwind.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,13 @@ public function table(): Table
->tdAction('')
->tr('')
->trFilters('bg-white shadow-sm dark:bg-pg-primary-800')
->tdFilters('!p-2')
->th('font-extrabold px-2 pr-4 py-3 text-left text-xs text-pg-primary-700 tracking-wider whitespace-nowrap dark:text-pg-primary-300')
->tbody('text-pg-primary-800')
->trBody('border-b border-pg-primary-100 dark:border-pg-primary-600 hover:bg-pg-primary-50 dark:bg-pg-primary-800 dark:hover:bg-pg-primary-700')
->tdBody('px-3 py-2 whitespace-nowrap dark:text-pg-primary-200')
->tdBodyEmpty('px-3 py-2 whitespace-nowrap dark:text-pg-primary-200')
->tdBody('p-2 whitespace-nowrap dark:text-pg-primary-200')
->tdBodyEmpty('p-2 whitespace-nowrap dark:text-pg-primary-200')
->trBodyClassTotalColumns('')
->tdBodyTotalColumns('px-3 py-2 whitespace-nowrap dark:text-pg-primary-200 text-sm text-pg-primary-600 text-right space-y-2');
->tdBodyTotalColumns('p-2 whitespace-nowrap dark:text-pg-primary-200 text-sm text-pg-primary-600 text-right space-y-2');
}

public function footer(): Footer
Expand Down

0 comments on commit f981fda

Please sign in to comment.