fix: Update README credits and adjust image gallery column thumbnail dimensions to nullable

This commit is contained in:
al-saloul
2025-12-11 15:55:20 +03:00
parent c8be5ac5f3
commit 7e1c25ef7f
3 changed files with 7 additions and 6 deletions

View File

@@ -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

View File

@@ -64,7 +64,7 @@
<img
src="{{ $src }}"
loading="lazy"
class="object-cover {{ $borderColorClass }} shadow-sm {{ $borderRadiusClass }} hover:scale-110 transition cursor-pointer"
class="object-cover {{ $borderColorClass }} {{ $borderRadiusClass }} hover:scale-110 transition cursor-pointer"
style="{{ $sizeStyle }} {{ $ringStyle }}"
alt="image"
/>

View File

@@ -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);
}