Skip to content

Commit

Permalink
Adding sizes attribute for recipe images (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlynch committed Jan 12, 2018
1 parent c37fb4c commit 56f961e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/_components/recipe-card/recipe-card.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<img
[src]="recipe.defaultThumbnailUrl"
[srcset]="recipe.thumbnailUrls"
sizes="(max-width: 768px) 90vw, 340px"
[attr.alt]="recipe.title"
src="#"
class="img-responsive card-img-top img-fluid">
Expand Down

0 comments on commit 56f961e

Please sign in to comment.