File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed
views/components/repeater Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 206206 & .fi-hidden {
207207 @apply hidden;
208208 }
209+
210+ & .fi-vertical-align-start {
211+ @apply align-top;
212+ }
213+
214+ & .fi-vertical-align-center {
215+ @apply align-middle;
216+ }
217+
218+ & .fi-vertical-align-end {
219+ @apply align-bottom;
220+ }
209221 }
210222 }
211223 }
Original file line number Diff line number Diff line change 22 use Filament\Actions\ Action ;
33 use Filament\Actions\ ActionGroup ;
44 use Filament\Support\Enums\ Alignment ;
5+ use Filament\Support\Enums\ VerticalAlignment ;
56 use Illuminate\Support\ Js ;
67 use Illuminate\View\ ComponentAttributeBag ;
78
@@ -160,9 +161,14 @@ class="fi-fo-table-repeater-actions"
160161 @if ($schemaComponent -> isVisible () )
161162 @php
162163 $schemaComponentStatePath = $schemaComponent -> getStatePath ();
164+ $currentColumn = $tableColumns [$counter - 1 ] ?? null ;
165+ $columnVerticalAlignment = $currentColumn ?-> getVerticalAlignment ();
163166 @endphp
164167
165168 <td
169+ @class ([
170+ ($columnVerticalAlignment instanceof VerticalAlignment ) ? (' fi-vertical-align-' . $columnVerticalAlignment -> value ) : (is_string ($columnVerticalAlignment ) ? $columnVerticalAlignment : ' ' ),
171+ ] )
166172 x-data =" filamentSchemaComponent({
167173 path: @js ($schemaComponentStatePath ),
168174 containerPath: @js ($itemStatePath ),
Original file line number Diff line number Diff line change 66use Filament \Support \Components \Component ;
77use Filament \Support \Concerns \CanWrapHeader ;
88use Filament \Support \Concerns \HasAlignment ;
9+ use Filament \Support \Concerns \HasVerticalAlignment ;
910use Filament \Support \Concerns \HasWidth ;
1011use Illuminate \Contracts \Support \Htmlable ;
1112
1213class TableColumn extends Component
1314{
1415 use CanWrapHeader;
1516 use HasAlignment;
17+ use HasVerticalAlignment;
1618 use HasWidth;
1719
1820 protected string $ evaluationIdentifier = 'column ' ;
You can’t perform that action at this time.
0 commit comments