diff --git a/src/Screen/Components/Cells/Text.php b/src/Screen/Components/Cells/Text.php index 12774028c..0cb724824 100644 --- a/src/Screen/Components/Cells/Text.php +++ b/src/Screen/Components/Cells/Text.php @@ -19,7 +19,7 @@ class Text extends Component */ public function __construct( protected mixed $value, - protected ?string $title = null, + protected ?string $title = null, protected ?string $text = null, protected ?int $words = 30, protected ?int $clamp = 5, @@ -36,7 +36,7 @@ public function render() return Blade::render('
@empty(!$title){{ $title }}@endempty {{ $text }}
', [ - 'class' => $this->clamp ? 'line-clamp-' . $this->clamp : '', + 'class' => $this->clamp ? 'line-clamp-'.$this->clamp : '', 'title' => $this->title ? Str::of($this->value->getContent($this->title))->words($this->words) : '', 'text' => Str::of($this->value->getContent($this->text))->words($this->words), ]);