Skip to content

Commit

Permalink
product-main
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt-beeclever committed Sep 29, 2024
1 parent f9b1677 commit 4a829c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snippets/image-element.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
assign fit = fit | default: "cover"
assign aspect_ratio = aspect_ratio
if aspect_ratio == 'auto'
assign aspect_ratio = image.aspect_ratio | round: 6
assign aspect_ratio = image.aspect_ratio | default: 1.0 | round: 6
elsif aspect_ratio != blank
if aspect_ratio contains '/'
assign numerator = aspect_ratio | split: '/' | first | times: 1.0
Expand Down

0 comments on commit 4a829c4

Please sign in to comment.