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

Image Block: Show image blocks with external URLs and support resizing #6240

Merged
merged 1 commit into from
Apr 18, 2018

Conversation

youknowriad
Copy link
Contributor

related #5812

This PRs fixes the image block when using an external URL (the images were not showing) and also adds resizing support using the inspector controls to these images.

Testing instructions

  • Check that the images in the demo content show up properly
  • Check that you can resize them using the inspector controls
  • Check that resizing using the inspector controls also work for media library inserted images.

@youknowriad youknowriad added [Type] Bug An existing feature does not function as intended [Feature] Media Anything that impacts the experience of managing media labels Apr 18, 2018
@youknowriad youknowriad added this to the 2.7 milestone Apr 18, 2018
@youknowriad youknowriad self-assigned this Apr 18, 2018
@youknowriad youknowriad force-pushed the fix/image-block-with-external-url branch from a52a1a3 to 468a764 Compare April 18, 2018 10:02
@jasmussen
Copy link
Contributor

Nice! works for me 👍 👍

@youknowriad youknowriad merged commit cee2df5 into master Apr 18, 2018
@youknowriad youknowriad deleted the fix/image-block-with-external-url branch April 18, 2018 11:16
@noisysocks
Copy link
Member

👍 code looks good. Thanks for fixing that up, Riad!

@@ -221,84 +219,85 @@ class ImageBlock extends Component {

const isResizable = [ 'wide', 'full' ].indexOf( align ) === -1 && ( ! viewPort.isExtraSmall() );

const getInspectorControls = ( imageWidth, imageHeight )=> (
Copy link
Member

Choose a reason for hiding this comment

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

Huh, weird that the linter didn't complain about the missing space here.

Copy link
Member

Choose a reason for hiding this comment

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

Fixed in #6263.

nuzzio pushed a commit to nuzzio/gutenberg that referenced this pull request Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Media Anything that impacts the experience of managing media [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants