@@ -1279,7 +1279,10 @@ class="fi-ta-record-collapse-btn fi-icon-btn"
12791279 </table >
12801280 @endif
12811281 @elseif ((! ($content || $hasColumnsLayout )) && ($records !== null ) )
1282- <table class =" fi-ta-table w-full table-fixed sm:table-auto" >
1282+ <table @class ([
1283+ ' fi-ta-table' ,
1284+ ' fi-ta-table-stacked-on-mobile' => $canBeStackedOnMobile
1285+ ] )>
12831286 <thead >
12841287 @if ($hasColumnGroups )
12851288 <tr class =" fi-ta-table-head-groups-row" >
@@ -1453,7 +1456,7 @@ class="fi-ta-actions-header-cell fi-ta-empty-header-cell"
14531456 ' fi-grouped' => $column -> getGroup (),
14541457 ' fi-wrapped' => $column -> canHeaderWrap (),
14551458 ' fi-ta-header-cell-sorted' => $isColumnActivelySorted ,
1456- ' hidden sm:table-cell ' => $canBeStackedOnMobile ,
1459+ ' fi-ta-header- hidden-on-mobile ' => $canBeStackedOnMobile ,
14571460 ((($columnAlignment = $column -> getAlignment ()) instanceof \Filament\Support\Enums\ Alignment ) ? " fi-align-{$columnAlignment -> value }" : (is_string ($columnAlignment ) ? $columnAlignment : ' ' )),
14581461 (filled ($columnHiddenFrom = $column -> getHiddenFrom ()) ? " {$columnHiddenFrom }:fi-hidden" : ' ' ),
14591462 (filled ($columnVisibleFrom = $column -> getVisibleFrom ()) ? " {$columnVisibleFrom }:fi-visible" : ' ' ),
@@ -2020,8 +2023,8 @@ class="fi-ta-record-checkbox fi-checkbox-input"
20202023 } }
20212024 >
20222025 @if ($canBeStackedOnMobile )
2023- <div class =" inline-block w-1/2 sm:hidden text-xs font-semibold text-gray-500 py-4 pl-4 " >{{ $column -> getLabel () } } </div >
2024- <div class =" inline-block sm:block w-1/2 sm:w-auto wrap-break-word text-sm text-gray-800 pr-4 sm:pr-0 " >
2026+ <div class =" fi-ta-cell-is-stacked-label " >{{ $column -> getLabel () } } </div >
2027+ <div class =" fi-ta-cell-is-stacked-contents " >
20252028 @endif
20262029 <{{ $columnWrapperTag } }
20272030 @if ($columnWrapperTag === ' a' )
@@ -2051,15 +2054,15 @@ class="fi-ta-record-checkbox fi-checkbox-input"
20512054 @if (count ($defaultRecordActions ) && $recordActionsPosition === RecordActionsPosition:: AfterColumns && (! $isReordering ) )
20522055 <td @class ([
20532056 ' fi-ta-cell' ,
2054- ' flex w-full border-t border-gray-200 sm:table- cell sm:w-auto sm:border-none px-4 ' => $canBeStackedOnMobile
2057+ ' fi-ta- cell-is-stacked-actions ' => $canBeStackedOnMobile
20552058 ] )>
20562059 @if ($canBeStackedOnMobile )
2057- <div class =" inline-block w-1/2 sm:hidden text-xs font-semibold text-gray-500 " >{{ __ (' Actions' ) } } </div >
2060+ <div class =" fi-ta-cell-is-stacked-actions-label " >{{ __ (' Actions' ) } } </div >
20582061 @endif
20592062 <div
20602063 @class ([
20612064 ' fi-ta-actions' ,
2062- ' px-3 sm:px-0 gap-4 sm:gap-3 ' => $canBeStackedOnMobile ,
2065+ ' fi-ta-actions-is-stacked ' => $canBeStackedOnMobile ,
20632066 match ($recordActionsAlignment ) {
20642067 Alignment:: Center => ' fi-align-center' ,
20652068 Alignment:: Start , Alignment:: Left => ' fi-align-start' ,
0 commit comments