Merge branch 'fixReviews' into 'develop'

Fixreviews

See merge request ldc-web/projets/le-gaulois!357
This commit is contained in:
Karl M'muller 2026-07-03 15:17:59 +00:00
commit b4d2299c9c
2 changed files with 13 additions and 8 deletions

View file

@ -491,3 +491,9 @@
}
}
}
#redirection-block {
width: 416px;
max-width: 100%;
flex-shrink: 0;
}

View file

@ -5,14 +5,14 @@
$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 id="redirection-block" class="news-small-card bottom-left-shadow border-0 bg-transparent flex-shrink-0">
<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 +22,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 +47,4 @@
<a href="{{ $ctaUrl }}" class="btn btn-secondary f-bourton-base w-fit">{{ $ctaLabel }}</a>
</div>
@endif
</div>