From 7e1c25ef7fbb3e2b85e2fb3f68e09b4902b42ce9 Mon Sep 17 00:00:00 2001 From: al-saloul Date: Thu, 11 Dec 2025 15:55:20 +0300 Subject: [PATCH] fix: Update README credits and adjust image gallery column thumbnail dimensions to nullable --- README.md | 3 ++- resources/views/columns/image-gallery.blade.php | 2 +- src/Tables/Columns/ImageGalleryColumn.php | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ee7d304..1508849 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,8 @@ Please see [CHANGELOG](CHANGELOG.md) for more information. ## Credits -- [Al-Saloul](https://github.com/al-saloul) +- [Mohammed Alsaloul](https://github.com/al-saloul) +- [Husam Almiyah](https://github.com/Husam-Almiyah) - [Viewer.js](https://fengyuanchen.github.io/viewerjs/) ## License diff --git a/resources/views/columns/image-gallery.blade.php b/resources/views/columns/image-gallery.blade.php index 4b01817..b099731 100644 --- a/resources/views/columns/image-gallery.blade.php +++ b/resources/views/columns/image-gallery.blade.php @@ -64,7 +64,7 @@ image diff --git a/src/Tables/Columns/ImageGalleryColumn.php b/src/Tables/Columns/ImageGalleryColumn.php index 5634c96..0a21604 100644 --- a/src/Tables/Columns/ImageGalleryColumn.php +++ b/src/Tables/Columns/ImageGalleryColumn.php @@ -10,9 +10,9 @@ class ImageGalleryColumn extends Column { protected string $view = 'image-gallery::columns.image-gallery'; - protected int | Closure | null $thumbWidth = 40; + protected int | Closure | null $thumbWidth = null; - protected int | Closure | null $thumbHeight = 40; + protected int | Closure | null $thumbHeight = null; protected int | Closure | null $limit = 3; @@ -174,7 +174,7 @@ class ImageGalleryColumn extends Column return $this; } - public function getEmptyText(): string + public function getEmptyText(): Closure|string { return $this->evaluate($this->emptyText); } @@ -198,7 +198,7 @@ class ImageGalleryColumn extends Column return $this; } - public function getVisibility(): string + public function getVisibility(): Closure|string { return $this->evaluate($this->visibility); }