Skip to content

Commit

Permalink
Check image width to set minimum in srcset
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrckvzn committed Jan 14, 2022
1 parent 253bf74 commit 233c870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/MediaSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ protected function widthRange()

// weird science 🥸
$range = array_merge(
range(250, 1250, 250),
range(min(250, $baseWidth), 1250, 250),
range(1500, 10000, 500),
);

Expand Down

0 comments on commit 233c870

Please sign in to comment.