Container width and height values will cause layout issues when changing theme or updating settings.layout.contentSize
value in theme.json
#28
Labels
bug
Something isn't working
Expected Behavior
The Image Comparisons
containerHeight
andcontainerWidth
values should avoid being set to numeric values unless specifically set by a user, this will allow for the block to scale with the themessettings.layout.contentSize
value intheme.json
when changed.Actual Behavior
When an Image Comparison block is added the
containerWidth
attribute is set to the value ofsettings.layout.contentSize
from the themestheme.json
, if you then change theme or edit the value ofsettings.layout.contentSize
intheme.json
the Image Comparison block won't scale to the new width in the editor or on the frontend.Step-by-step reproduction instructions
settings.layout.contentSize
value intheme.json
Screenshots, screen recordings, code snippets
N/A
System Information
The text was updated successfully, but these errors were encountered: