Update (list): Fix crash on list output

This commit is contained in:
2023-08-15 19:30:09 +08:00
parent ae11f4556e
commit b6ba3d2957
6 changed files with 34 additions and 18 deletions

View File

@@ -12,7 +12,7 @@
@endphp
<figure class="image {{ $classes }}">
<img src="{{ $data['file']['url'] }}" alt="{{ $data['caption'] ?: '' }}">
<img class="img-fluid rounded-2 shadow-sm mb-2" src="{{ $data['file']['url'] }}" alt="{{ $data['caption'] ?: '' }}">
@if (!empty($data['caption']))
<footer class="image-caption">
{{ $data['caption'] }}