Skip to content

Commit

Permalink
Fix picture component, so it uses the correct format.
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkidn committed Sep 13, 2023
1 parent d218e6f commit 89bed06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/components/picture.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
:class="$class"
:alt="$alt"
/>
@elseif (! $formats && ! $formats)
@elseif ($format && ! $formats)
<img
alt="{{ $alt }}"
title="{{ $title }}"
@class([
$class ?? 'img-fluid',
'lazyload' => $lazyload,
])
src="{{ $image->getFormatOrOriginal('thumbnail') }}"
src="{{ $image->getFormatOrOriginal($format) }}"
>
@elseif ($image)
<picture class="{{ $pictureClass }}">
Expand Down

0 comments on commit 89bed06

Please sign in to comment.