Skip to content

Commit

Permalink
Product page and listing images fix (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobWez98 authored Nov 19, 2024
1 parent ac44a09 commit 4a7f190
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/listing/partials/item.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<a :href="item.url | url" class="block">
<img
v-if="item.thumbnail"
:src="resizedPath(item.thumbnail + '.webp', '200')"
:src="'/storage/{{ config('rapidez.store') }}/resizes/200/magento/catalog/product' + item.thumbnail + '.webp'"
class="mb-3 h-48 w-full rounded-t object-contain" :alt="item.name" :loading="config.category && count <= 4 ? 'eager' : 'lazy'"
width="200"
height="200"
Expand Down
2 changes: 1 addition & 1 deletion resources/views/product/partials/gallery/slider.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class="flex items-center justify-center border rounded p-5 h-[440px] cursor-zoom
v-on:click.prevent="toggleZoom"
>
<img
:src="resizedPath(images[active] + '.webp', '400')"
:src="'/storage/{{ config('rapidez.store') }}/resizes/400/magento/catalog/product' + images[active] + '.webp'"
alt="{{ $product->name }}"
class="object-contain max-h-full"
width="400"
Expand Down

0 comments on commit 4a7f190

Please sign in to comment.