Skip to content

Commit

Permalink
Better way to define placeholder text
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudoclass committed Sep 12, 2024
1 parent 995c5ef commit 9d361d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/templates/_components/app/line-item-cart.twig
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<div class="w-[80px] min-w-[80px] max-w-[80px] md:w-[200px] md:min-w-[200px] md:max-w-[200px] flex-grow">
<figure class="rounded-lg overflow-hidden min-w-full">
<img
src="{{ imageUrl ?? ('https://placehold.co/200x200?text=' ~ 'No Image'|t('foster-checkout')|replace({ ' ': '+' })) }}"
src="{{ imageUrl ?? ('https://placehold.co/200x200?text=' ~ 'No Image'|t('foster-checkout')|split(' ')|join('+')) }}"
srcset="{{ imageUrl ? imageSrcSet : '' }}"
sizes="(min-width: 768px) 200px, 80px"
width="200"
Expand Down
2 changes: 1 addition & 1 deletion src/templates/_components/app/line-item-checkout.twig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div class="w-[70px] min-w-[70px]">
<figure class="rounded-lg overflow-hidden">
<img
src="{{ imageUrl ?? ('https://placehold.co/70x70?text=' ~ 'No Image'|t('foster-checkout')|replace({ ' ': '+' })) }}"
src="{{ imageUrl ?? ('https://placehold.co/70x70?text=' ~ 'No Image'|t('foster-checkout')|split(' ')|join('+')) }}"
width="70"
height="70"
alt="{{ 'Image of'|t('foster-checkout') ~ ' ' ~ lineItem.description }}"
Expand Down

0 comments on commit 9d361d5

Please sign in to comment.