Skip to content

Commit

Permalink
Try to fix card images
Browse files Browse the repository at this point in the history
  • Loading branch information
momijizukamori committed Jun 19, 2024
1 parent ff9999f commit 1f5c0e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/items/card.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<div style="height: {{ ($type ?? null) === 'small' ? '7rem' : '14rem' }}" class="text-center">
<a href="{{ $item->url }}">
<img src="$item->image ? Storage::cloud()->url($item->image) : default_asset()" class="mw-100 mh-100 rounded"
<img src="{{ $item->image ? Storage::cloud()->url($item->image) : default_asset() }}" class="mw-100 mh-100 rounded"
onerror="if (this.src !== '{{ default_asset() }}') this.src = '{{ default_asset() }}'">
</a>
</div>
Expand Down

0 comments on commit 1f5c0e7

Please sign in to comment.