fix 🐛 resize encart

This commit is contained in:
Abdel LAMRANI 2026-07-03 14:49:28 +02:00
parent db279d085d
commit b32ceb2f0f

View file

@ -5,14 +5,15 @@
$hasActu = in_array($blockType, [BlockContentTypeEnum::Actu->value, BlockContentTypeEnum::Both->value]);
@endphp
<div class="row justify-content-{{ $pos }}">
<div class="row justify-content-{{ $pos }} align-items-center">
@if ($hasActu && $news)
<div class="col-12 {{ $hasCta ? 'col-lg-4' : 'col-lg-5' }} order-1">
<div class="news-small-card bottom-left-shadow border-0 bg-transparent">
<div class="col-12 col-md-auto order-1 d-flex">
<div class="news-small-card bottom-left-shadow border-0 bg-transparent flex-shrink-0"
style="width: 416px; max-width: 100%;">
<a class="text-decoration-none" href="{{ route('fo.news.show', $news->slug) }}"
title="{{ __('Accéder à l\'article : :name', ['name' => $news->title]) }}">
<div class="line-border-small bg-white p-3">
<div class="row align-items-center">
<div class="row align-items-center flex-nowrap g-3">
<div class="col-4">
<div class="ratio ratio-1x1">
<img class="object-fit-cover"
@ -22,12 +23,12 @@
</div>
</div>
<div class="col-8">
<div class="d-flex align-items-center mb-2">
<div class="news-tag text-uppercase f-bourton-base fs-5 me-3 px-2 py-1"
<div class="d-flex align-items-center mb-2 flex-wrap flex-md-nowrap">
<div class="news-tag text-uppercase f-bourton-base me-2 px-2 py-1 flex-shrink-0"
style="background-color: {{ $news->newsCategory->color }}; color: #fff">
{!! clean($news->newsCategory->title) !!}
</div>
<p class="f-bakerie-rough mb-0">
<p class="f-bakerie-rough mb-0 text-nowrap">
{{ \Carbon\Carbon::parse($news->updated_at)->format('d/m/Y') }}
</p>
</div>
@ -47,5 +48,4 @@
<a href="{{ $ctaUrl }}" class="btn btn-secondary f-bourton-base w-fit">{{ $ctaLabel }}</a>
</div>
@endif
</div>