Skip to content

Commit d3e9bb6

Browse files
committed
fix: mirror object fit props on the placeholder image
1 parent 86356e9 commit d3e9bb6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/components/bolt-image/src/image.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105

106106
{% if valign and cover %}
107107
{% set image_attributes = image_attributes.setAttribute("style", "object-position: 50% #{valign};") %}
108+
{% set image_fallback_attributes = image_fallback_attributes.setAttribute("style", "object-position: 50% #{valign};") %}
108109
{% endif %}
109110

110111
{% set image_tag %}

0 commit comments

Comments
 (0)