Skip to content

Commit

Permalink
DCOS: Correct example fusion code
Browse files Browse the repository at this point in the history
  • Loading branch information
mficzel authored Jul 23, 2018
1 parent 0468b2e commit ccb3bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ Render a `picture`-tag with multiple `source`-children and an `img`-fallback :
imageSource = Sitegeist.Kaleidoscope:DummyImageSource
renderer = afx`
<picture>
<source srcset={props.imageSource.width(400).height(400)} media="(max-width: 799px)" />
<source srcset={props.imageSource.setWidth(400).setHeight(400)} media="(max-width: 799px)" />
<source srcset={props.imageSource.srcset('400w, 600w, 800w')} media="(min-width: 800px)" />
<img src={props.imageSource} />
</picture>
Expand Down

0 comments on commit ccb3bfd

Please sign in to comment.