Skip to content

Commit 58db42f

Browse files
authored
Merge pull request #1012 from cloudinary/fix/responsive-breakpoints
Fix: Responsive breakpoints
2 parents 7e365fd + 84d2f3f commit 58db42f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/delivery/class-responsive-breakpoints.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ protected function apply_breakpoints( $tag_element ) {
140140
$size_transformation = $this->media->get_crop_from_transformation( $this->media->get_transformations_from_string( $src ) );
141141
$size_string = Api::generate_transformation_string( array( $size_transformation ) );
142142
$breakpoints = array();
143-
while ( $max > $min ) {
143+
while ( $max >= $min ) {
144144
if ( $width >= $max ) {
145145
$size_transformation['width'] = $max;
146146
$size_transformation['height'] = floor( $max / $ratio );

0 commit comments

Comments
 (0)