fix: figcaption dans figure, loop swiper, max-height images investigation
All checks were successful
Deploy / Deploy to Production (push) Successful in 13s

- investigation.php : figcaption déplacé à l'intérieur des <figure>
  (correction HTML + meilleure capture par la lightbox)
- swipers.js : loop: true sur toutes les galeries
- _investigation_content.scss : max-height 75vh sur les images
- _figures.scss : reformatage indentation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-02-27 16:03:35 +01:00
parent 3d9a0421b3
commit 59c5396184
6 changed files with 125 additions and 38 deletions

View file

@ -40,7 +40,7 @@ $dateLocale = substr(is_array($locale) ? reset($locale) : $locale, 0, 5);
</div>
<?php if ($page->heroCaption()->isNotEmpty()): ?>
<figcaption><?= $page->heroCaption()->inline() ?></figcaption>
<figcaption><?= $page->heroCaption()->inline() ?></figcaption>
<?php endif ?>
</div>
@ -56,12 +56,12 @@ $dateLocale = substr(is_array($locale) ? reset($locale) : $locale, 0, 5);
'srcsetName' => 'cover-hero',
'lazy' => false,
]) ?>
</figure>
<?php if ($page->heroCaption()->isNotEmpty()): ?>
<figcaption><?= $page->heroCaption()->inline() ?></figcaption>
<figcaption><?= $page->heroCaption()->inline() ?></figcaption>
<?php elseif ($cover->caption()->isNotEmpty()): ?>
<figcaption><?= $cover->caption() ?></figcaption>
<figcaption><?= $cover->caption() ?></figcaption>
<?php endif ?>
</figure>
</div>
<?php endif ?>
@ -212,10 +212,10 @@ $dateLocale = substr(is_array($locale) ? reset($locale) : $locale, 0, 5);
'srcsetName' => 'body-full',
'lazy' => true,
]) ?>
</figure>
<?php if ($image->caption()->isNotEmpty()): ?>
<p class="caption"><?= $image->caption()->html() ?></p>
<figcaption><?= $image->caption()->html() ?></p>
<?php endif ?>
</figure>
<?php endif ?>
</div>
@ -261,10 +261,10 @@ $dateLocale = substr(is_array($locale) ? reset($locale) : $locale, 0, 5);
'srcsetName' => 'body-half',
'lazy' => true,
]) ?>
</figure>
<?php if ($image->caption()->isNotEmpty()): ?>
<p class="caption"><?= $image->caption()->html() ?></p>
<figcaption><?= $image->caption()->html() ?></figcaption>
<?php endif ?>
</figure>
<?php endif ?>
</div>