Add tests for featured thumbnail generation; apply Pint formatting and related edits

This commit is contained in:
2026-05-06 18:55:40 +02:00
parent 7a8bc8e22a
commit 82f2b1f660
65 changed files with 11325 additions and 49545 deletions

View File

@@ -27,7 +27,7 @@
</div>
@if ($sectionItems->isNotEmpty())
<div class="{{ $sectionLayout === 'rail' ? 'flex snap-x snap-mandatory gap-4 overflow-x-auto pb-3 ' . $sectionColumns . ' lg:grid lg:overflow-visible' : 'grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4 ' . $sectionColumns }}">
<div class="{{ $sectionLayout === 'rail' ? 'flex snap-x snap-mandatory gap-4 overflow-x-auto pb-3 ' . $sectionColumns . ' lg:grid lg:overflow-visible' : 'grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3 ' . $sectionColumns }}">
@foreach ($sectionItems as $index => $item)
@include('web.home.sections.artwork-card', [
'item' => $item,
@@ -36,7 +36,7 @@
'badgeClass' => $badge_class ?? null,
'sizes' => $sectionLayout === 'rail'
? '(max-width: 640px) 72vw, (max-width: 1024px) 44vw, 240px'
: '(max-width: 640px) 50vw, (max-width: 1024px) 33vw, 25vw',
: '(max-width: 640px) 100vw, (max-width: 768px) 50vw, (max-width: 1024px) 33vw, 25vw',
'idPrefix' => Str::slug((string) $title, '-'),
'index' => $index,
])