mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
a139c2a8a2
Added extra labels, or removed duplicate info, to improve screen reader ux after testing via gnome/fedora/firefox screen reader usage testing.
28 lines
1.0 KiB
PHP
28 lines
1.0 KiB
PHP
@foreach($images as $index => $image)
|
|
<div>
|
|
<button component="event-emit-select"
|
|
option:event-emit-select:name="image"
|
|
option:event-emit-select:data="{{ json_encode($image) }}"
|
|
class="image anim fadeIn text-link"
|
|
style="animation-delay: {{ min($index * 10, 260) . 'ms' }};">
|
|
<img src="{{ $image->thumbs['gallery'] }}"
|
|
alt="{{ $image->name }}"
|
|
role="none"
|
|
width="150"
|
|
height="150"
|
|
loading="lazy">
|
|
<div class="image-meta">
|
|
<span class="name">{{ $image->name }}</span>
|
|
<span class="date">{{ trans('components.image_uploaded', ['uploadedDate' => $image->created_at->format('Y-m-d')]) }}</span>
|
|
</div>
|
|
</button>
|
|
</div>
|
|
@endforeach
|
|
@if(count($images) === 0)
|
|
<p class="m-m text-bigger italic text-muted">{{ trans('common.no_items') }}</p>
|
|
@endif
|
|
@if($hasMore)
|
|
<div class="load-more">
|
|
<button type="button" class="button small outline">{{ trans('components.image_load_more') }}</button>
|
|
</div>
|
|
@endif |