Skip to content

Commit

Permalink
width & height attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Dec 17, 2020
1 parent 66b87fa commit 29e96a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/resources/views/public/_list-item.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<li class="event-list-item">
<a class="event-list-item-link" href="{{ $event->uri() }}">
<div class="event-list-item-image-wrapper">
<img class="event-list-item-image" src="{{ $event->present()->image(540, 400) }}" alt="">
<img class="event-list-item-image" src="{{ $event->present()->image(540, 400) }}" width="{{ $event->image->width }}" height="{{ $event->image->height }}" alt="">
</div>
<div class="event-list-item-info">
<div class="event-list-item-date">{{ $event->present()->dateFromTo }}</div>
Expand Down
2 changes: 1 addition & 1 deletion src/resources/views/public/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
@include('core::public._social-links')
@empty(!$model->image)
<picture class="event-picture">
<img class="event-picture-image" src="{!! $model->present()->image(2000, 1000) !!}" alt="">
<img class="event-picture-image" src="{{ $model->present()->image(2000, 1000) }}" width="{{ $model->image->width }}" height="{{ $model->image->height }}" alt="">
@empty(!$model->image->description)
<legend class="event-picture-legend">{{ $model->image->description }}</legend>
@endempty
Expand Down

0 comments on commit 29e96a9

Please sign in to comment.