Skip to content

Commit 7161344

Browse files
committed
width & height attributes
1 parent 4a6b39c commit 7161344

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/resources/views/public/_list-item.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<a class="object-list-item-link" href="{{ $object->uri() }}" title="{{ $object->title }}">
33
<span class="object-list-item-title">{{ $object->title }}</span>
44
<span class="object-list-item-image-wrapper">
5-
<img class="object-list-item-image" src="{{ $object->present()->image(null, 200) }}" alt="">
5+
<img class="object-list-item-image" src="{{ $object->present()->image(null, 200) }}" width="{{ $object->image->width }}" height="{{ $object->image->height }}" alt="">
66
</span>
77
</a>
88
</li>

src/resources/views/public/show.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
@endempty
2525
@empty(!$model->image)
2626
<picture class="object-picture">
27-
<img class="object-picture-image" src="{!! $model->present()->image(2000, 1000) !!}" alt="">
27+
<img class="object-picture-image" src="{{ $model->present()->image(2000, 1000) }}" width="{{ $model->image->width }}" height="{{ $model->image->height }}" alt="">
2828
@empty(!$model->image->description)
2929
<legend class="object-picture-legend">{{ $model->image->description }}</legend>
3030
@endempty

0 commit comments

Comments
 (0)