diff --git a/resources/views/components/table-repeater.blade.php b/resources/views/components/table-repeater.blade.php index ebf72aa..b2ae23d 100644 --- a/resources/views/components/table-repeater.blade.php +++ b/resources/views/components/table-repeater.blade.php @@ -50,7 +50,7 @@ '2xl' => 'break-point-2xl', default => 'break-point-md', }, - 'overflow-auto' => $getScrollable() + 'overflow-auto' => $shouldBeScrollable() ]) }} > @if (count($containers) || $emptyLabel !== false) @@ -81,7 +81,7 @@ } ]) @if ($header['width']) - style="{{$getStrictWidth()? 'min-width':'width'}}: {{ $header['width'] }}" + style="{{$shouldStrictWidth()? 'min-width':'width'}}: {{ $header['width'] }}" @endif > {{ $header['label'] }} @@ -155,7 +155,7 @@ class="filament-table-repeater-row md:divide-x md:divide-gray-950/5 dark:md:divi $columnWidths && isset($columnWidths[$cellKey]) ) - style="{{$getStrictWidth()? 'min-width':'width'}}: {{ $columnWidths[$cellKey] }}" + style="{{$shouldStrictWidth()? 'min-width':'width'}}: {{ $columnWidths[$cellKey] }}" @endif > {{ $cell }} diff --git a/src/Components/TableRepeater.php b/src/Components/TableRepeater.php index 957f4e7..6ed3f39 100644 --- a/src/Components/TableRepeater.php +++ b/src/Components/TableRepeater.php @@ -72,12 +72,12 @@ public function getBreakPoint(): string { return $this->breakPoint; } - public function getStrictWidth(): string + public function shouldStrictWidth(): bool { return $this->evaluate($this->strictWidth); } - public function getScrollable(): string + public function shouldBeScrollable(): bool { return $this->evaluate($this->scrollable); }