Skip to content

Commit

Permalink
Update: Move Assets inside container
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnitto committed Nov 22, 2022
1 parent 57739af commit 613d481
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ prototype(Jonnitto.PrettyEmbedVideoPlatforms:Component.Video.Fragment.Vimeo) < p
@apply.props = ${props}
}
content = afx`
<Jonnitto.PrettyEmbedHelper:Assets />
{props.playButton}
{props.content}
<img @if.set={!props.content} alt={props.alternativeText} src={props.poster} srcset={props.poster && props.poster2x ? props.poster + ' 1x,' + props.poster2x + ' 2x' : null} loading={props.loadImageStrategy} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ prototype(Jonnitto.PrettyEmbedVideoPlatforms:Component.Video.Fragment.Youtube) <
@apply.props = ${props}
}
content = afx`
<Jonnitto.PrettyEmbedHelper:Assets youtubeAPI={props.enableJsApi} />
{props.playButton}
{props.content}
<img @if.set={!props.content} alt={props.alternativeText} src={props.poster} srcset={props.poster && props.poster2x ? props.poster + ' 1x,' + props.poster2x + ' 2x' : null} class={props.previewImageClass} loading={props.loadImageStrategy} />
Expand Down
3 changes: 0 additions & 3 deletions Resources/Private/Fusion/Component/Video/Video.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ prototype(Jonnitto.PrettyEmbedVideoPlatforms:Component.Video) < prototype(Neos.F
@if.hasNeededProperties = ${this.platform && this.videoID && (this.finalPoster || this.content) && (this.isYouTube ? !!this.platform : true)}

renderer = afx`
<Jonnitto.PrettyEmbedHelper:Assets
youtubeAPI={props.enableJsApi && props.platform == 'youtube'}
/>
<Jonnitto.PrettyEmbedVideoPlatforms:Component.Video.Fragment.Youtube
@if.set={props.platform == 'youtube'}
{...props}
Expand Down

0 comments on commit 613d481

Please sign in to comment.