feat: fixed width and preloader for product view page

This commit is contained in:
2025-12-08 13:59:27 +03:00
parent dc198c63b7
commit 5d775e8eb6
3 changed files with 96 additions and 19 deletions

View File

@@ -287,7 +287,7 @@ class ProductsService
$images[] = [
'thumbnailURL' => $this->image
->make($imagePath)
->resize($imageThumbWidth, $imageThumbHeight)
->contain($imageThumbWidth, $imageThumbHeight)
->url(),
'largeURL' => $this->image->make($imagePath)->resize($imageFullWidth, $imageFullHeight)->url(),
'width' => $width,