Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
Update responsive-image.liquid (#150)
Browse files Browse the repository at this point in the history
* Update responsive-image.liquid

Whitespace control for image.width inside image_widths caption block.

* Update src/snippets/responsive-image.liquid

Co-Authored-By: kivlov <kivlov02@gmail.com>

* Update responsive-image.liquid

Refactoring `image_widths` variable
  • Loading branch information
Ian Owira authored and Hugues Tennier committed Feb 27, 2019
1 parent 0724161 commit ccce3f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/snippets/responsive-image.liquid
Expand Up @@ -67,7 +67,7 @@
{%- endfor -%}
{{ image.width }}
{%- endcapture -%}
{%- assign image_widths = image_widths | strip_newlines -%}
{%- assign image_widths = image_widths | strip -%}

<div id="ImageWrapper-{{ image.id }}-{{ responsive_image_counter }}" data-image-id="{{ image.id }}" class="responsive-image__wrapper {{ wrapper_class }}" {{ wrapper_attributes }}>
<img id="Image-{{ image.id }}-{{ responsive_image_counter }}"
Expand Down

0 comments on commit ccce3f3

Please sign in to comment.