Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show video preview on cover media settings panel #18009

Merged

Conversation

jorgefilipecosta
Copy link
Member

@jorgefilipecosta jorgefilipecosta commented Oct 17, 2019

Description

This PR adds a video preview on the media settings panel. Before I just rendered the clear media button for video backgrounds. I think we should show a preview of the media we are cleaning, also I think the UI looks better if we show a preview.
For image backgrounds, we show the focal point picker which is also a preview of the image.

How has this been tested?

I added a cover block.
I selected a video as a background.
I verified a video preview appeared on the media settings panel on the block inspector.

Before

Screenshot 2019-11-14 at 16 15 46

After

Screenshot 2019-11-14 at 16 14 21

@jorgefilipecosta jorgefilipecosta added [Type] Enhancement A suggestion for improvement. Needs Design Feedback Needs general design feedback. [Block] Cover Affects the Cover Block - used to display content laid over a background image labels Oct 17, 2019
@jorgefilipecosta jorgefilipecosta force-pushed the update/show-video-preview-on-cover-media-settings branch from c3e507e to c654eb6 Compare November 14, 2019 16:14
@jorgefilipecosta
Copy link
Member Author

Hi @mapk, any thoughts on this change?

Copy link
Contributor

@mapk mapk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tested this and it works great! I see the video playing in the sidebar under the Media settings.

Screen Shot 2019-11-22 at 4 20 14 PM

@jorgefilipecosta jorgefilipecosta merged commit fa0e472 into master Nov 23, 2019
@jorgefilipecosta jorgefilipecosta deleted the update/show-video-preview-on-cover-media-settings branch November 23, 2019 11:37
@youknowriad youknowriad added this to the Gutenberg 7.0 milestone Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Cover Affects the Cover Block - used to display content laid over a background image Needs Design Feedback Needs general design feedback. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants