Skip to content

Commit

Permalink
Beta 6 - Dev to Master (#1444)
Browse files Browse the repository at this point in the history
* Collapsing Header Fix (#1441)

* V3 - Additional Fixes for Collapsing header (#1443)

* Collapsing Header Fix

* Collapsing Fixes

---------

Co-authored-by: lrljoe <[email protected]>
Co-authored-by: Anthony Rappa <[email protected]>
  • Loading branch information
3 people authored Oct 25, 2023
1 parent d7126bc commit da3beab
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ All notable changes to `laravel-livewire-tables` will be documented in this file
- setBulkActionConfirmMessages
- setBulkActionDefaultConfirmationMessage
- Localisation for confirmation message
-

## [3.0.0-beta.4] - 2023-10-17
- Introduction of Loading Placeholder
- Docs livewire namespace fix [Here](https://github.com/rappasoft/laravel-livewire-tables/pull/1420)
Expand Down
8 changes: 4 additions & 4 deletions resources/views/components/table/th.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
$attributes->merge($customAttributes)
->class(['px-6 py-3 text-left text-xs font-medium whitespace-nowrap text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400' => $customAttributes['default'] ?? true])
->class(['hidden' => $column->shouldCollapseAlways()])
->class(['hidden sm:table-cell' => $column->shouldCollapseOnMobile()])
->class(['hidden md:table-cell' => $column->shouldCollapseOnTablet()])
->class(['hidden md:table-cell' => $column->shouldCollapseOnMobile()])
->class(['hidden lg:table-cell' => $column->shouldCollapseOnTablet()])
->except('default')
}}
>
Expand Down Expand Up @@ -50,8 +50,8 @@
$attributes->merge($customAttributes)
->class(['' => $customAttributes['default'] ?? true])
->class(['d-none' => $column->shouldCollapseAlways()])
->class(['d-none d-sm-table-cell' => $column->shouldCollapseOnMobile()])
->class(['d-none d-md-table-cell' => $column->shouldCollapseOnTablet()])
->class(['d-none d-md-table-cell' => $column->shouldCollapseOnMobile()])
->class(['d-none d-lg-table-cell' => $column->shouldCollapseOnTablet()])
->except('default')
}}
>
Expand Down
10 changes: 5 additions & 5 deletions resources/views/components/table/th/row-contents.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
{{
$attributes
->merge(['class' => 'table-cell dark:bg-gray-800 laravel-livewire-tables-reorderingMinimised'])
->class(['sm:hidden' => !$component->shouldCollapseOnMobile() && !$component->shouldCollapseOnTablet() && !$component->shouldCollapseAlways()])
->class(['md:hidden' => !$component->shouldCollapseOnTablet() && !$component->shouldCollapseAlways()])
->class(['sm:hidden' => !$component->shouldCollapseOnTablet() && !$component->shouldCollapseAlways()])
->class(['md:hidden' => !$component->shouldCollapseOnMobile() && !$component->shouldCollapseOnTablet() && !$component->shouldCollapseAlways()])
->class(['lg:hidden' => !$component->shouldCollapseAlways()])
}}
:class="{ 'laravel-livewire-tables-reorderingMinimised': ! currentlyReorderingStatus }"
Expand All @@ -19,10 +19,10 @@
{{
$attributes
->merge(['class' => 'd-table-cell laravel-livewire-tables-reorderingMinimised'])
->class(['d-sm-none' => !$component->shouldCollapseOnMobile() && !$component->shouldCollapseOnTablet() && !$component->shouldCollapseAlways()])
->class(['d-md-none' => !$component->shouldCollapseOnTablet() && !$component->shouldCollapseAlways()])
->class(['d-sm-none' => !$component->shouldCollapseOnTablet() && !$component->shouldCollapseAlways()])
->class(['d-md-none' => !$component->shouldCollapseOnMobile() && !$component->shouldCollapseOnTablet() && !$component->shouldCollapseAlways()])
->class(['d-lg-none' => !$component->shouldCollapseAlways()])
}}
}}
:class="{ 'laravel-livewire-tables-reorderingMinimised': ! currentlyReorderingStatus }"
></th>
@endif
Expand Down

0 comments on commit da3beab

Please sign in to comment.