Skip to content

Commit

Permalink
BUGFIX: Apply width and height constraints defined for the main e…
Browse files Browse the repository at this point in the history
…lement to the items when the `formats` option is used to render multiple formats in `Sitegeist.Kaleidoscope:Picture`
  • Loading branch information
mficzel committed Sep 7, 2022
1 parent 6a2ea79 commit b4abc55
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Resources/Private/Fusion/Prototypes/Picture.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ prototype(Sitegeist.Kaleidoscope:Picture) < prototype(Neos.Fusion:Component) {
collection={Type.isArray(props.formats) ? props.formats : String.split(props.formats, ',')}
itemName="format"
>
<Sitegeist.Kaleidoscope:Source format={String.trim(format)} />
<Sitegeist.Kaleidoscope:Source
imageSource={props.imageSource}
format={String.trim(format)}
/>
</Neos.Fusion:Collection>
<Sitegeist.Kaleidoscope:Image
imageSource={props.imageSource}
Expand Down

0 comments on commit b4abc55

Please sign in to comment.