fix: revert srcset on beforeafter images
Le srcset sur image-before/image-after perturbait le clip CSS (width: var(--position)) rendant l'effet before/after inopérant. On revient aux img simples (src only) pour garantir le bon fonctionnement du slider. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a1fda065a9
commit
94065f1ce6
2 changed files with 1 additions and 14 deletions
|
|
@ -221,11 +221,7 @@ $dateLocale = substr(is_array($locale) ? reset($locale) : $locale, 0, 5);
|
|||
|
||||
<?php elseif ($block->type() === 'beforeafter'): ?>
|
||||
<div class="media">
|
||||
<?php snippet('blocks/' . $block->type(), [
|
||||
'block' => $block,
|
||||
'imgSizes' => '100vw',
|
||||
'imgSrcset' => 'body-full',
|
||||
]) ?>
|
||||
<?php snippet('blocks/' . $block->type(), ['block' => $block]) ?>
|
||||
</div>
|
||||
|
||||
<?php elseif ($block->type() === 'video'): ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue