Skip to content

Commit

Permalink
Collapsing Header Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lrljoe authored Oct 25, 2023
1 parent be31564 commit 151e170
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@

All notable changes to `laravel-livewire-tables` will be documented in this file

## [3.0.0-beta.4] - 2023-10-25
## [3.0.0-beta.6] - 2023-10-25
- Fix for collapsing column header shift

## [3.0.0-beta.5] - 2023-10-25
- Fix Return Type hinting for Column Rendering to allow Enum columns
- Add Bulk Action Confirmations, using wire:confirm
- setBulkActionConfirms
- setBulkActionConfirmMessage
- 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)
- Add CollapseAlways capability for Columns
Expand Down
19 changes: 6 additions & 13 deletions resources/views/components/table/th/row-contents.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@
{{
$attributes
->merge(['class' => 'table-cell dark:bg-gray-800 laravel-livewire-tables-reorderingMinimised'])
->class([
'md:hidden' => !$component->shouldCollapseAlways() && (
($component->shouldCollapseOnMobile() && $component->shouldCollapseOnTablet()) ||
($component->shouldCollapseOnTablet() && ! $component->shouldCollapseOnMobile())
)
])
->class(['sm:hidden' => !$component->shouldCollapseAlways() && $component->shouldCollapseOnMobile() && ! $component->shouldCollapseOnTablet()])
->class(['sm:hidden' => !$component->shouldCollapseOnMobile() && !$component->shouldCollapseOnTablet() && !$component->shouldCollapseAlways()])
->class(['md:hidden' => !$component->shouldCollapseOnTablet() && !$component->shouldCollapseAlways()])
->class(['lg:hidden' => !$component->shouldCollapseAlways()])
}}
:class="{ 'laravel-livewire-tables-reorderingMinimised': ! currentlyReorderingStatus }"
></th>
Expand All @@ -23,12 +19,9 @@
{{
$attributes
->merge(['class' => 'd-table-cell laravel-livewire-tables-reorderingMinimised'])
->class([
'd-md-none' => !$component->shouldCollapseAlways() &&
( ($component->shouldCollapseOnMobile() && $component->shouldCollapseOnTablet()) ||
($component->shouldCollapseOnTablet() && ! $component->shouldCollapseOnMobile()))
])
->class(['d-sm-none' => !$component->shouldCollapseAlways() && $component->shouldCollapseOnMobile() && ! $component->shouldCollapseOnTablet()])
->class(['d-sm-none' => !$component->shouldCollapseOnMobile() && !$component->shouldCollapseOnTablet() && !$component->shouldCollapseAlways()])
->class(['d-md-none' => !$component->shouldCollapseOnTablet() && !$component->shouldCollapseAlways()])
->class(['d-lg-none' => !$component->shouldCollapseAlways()])
}}
:class="{ 'laravel-livewire-tables-reorderingMinimised': ! currentlyReorderingStatus }"
></th>
Expand Down

0 comments on commit 151e170

Please sign in to comment.