{"action":"created","issue":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/5812","repository_url":"https://api.github.com/repos/WordPress/gutenberg","labels_url":"https://api.github.com/repos/WordPress/gutenberg/issues/5812/labels{/name}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/issues/5812/comments","events_url":"https://api.github.com/repos/WordPress/gutenberg/issues/5812/events","html_url":"https://github.com/WordPress/gutenberg/pull/5812","id":308821194,"number":5812,"title":"Add ability to manually set image dimensions","user":{"login":"noisysocks","id":612155,"avatar_url":"https://avatars1.githubusercontent.com/u/612155?v=4","gravatar_id":"","url":"https://api.github.com/users/noisysocks","html_url":"https://github.com/noisysocks","followers_url":"https://api.github.com/users/noisysocks/followers","following_url":"https://api.github.com/users/noisysocks/following{/other_user}","gists_url":"https://api.github.com/users/noisysocks/gists{/gist_id}","starred_url":"https://api.github.com/users/noisysocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noisysocks/subscriptions","organizations_url":"https://api.github.com/users/noisysocks/orgs","repos_url":"https://api.github.com/users/noisysocks/repos","events_url":"https://api.github.com/users/noisysocks/events{/privacy}","received_events_url":"https://api.github.com/users/noisysocks/received_events","type":"User","site_admin":false},"labels":[{"id":570263070,"url":"https://api.github.com/repos/WordPress/gutenberg/labels/Blocks","name":"Blocks","color":"fbca04","default":false},{"id":531680825,"url":"https://api.github.com/repos/WordPress/gutenberg/labels/[Type]%20Enhancement","name":"[Type] Enhancement","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-03-27T04:50:58Z","updated_at":"2018-03-28T07:18:26Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/WordPress/gutenberg/pulls/5812","html_url":"https://github.com/WordPress/gutenberg/pull/5812","diff_url":"https://github.com/WordPress/gutenberg/pull/5812.diff","patch_url":"https://github.com/WordPress/gutenberg/pull/5812.patch"},"body":"## Description\r\nCloses #4914.\r\n\r\nLet users manually set the width and height of an image either using a text field or by a preset percentage amount.\r\n\r\n## How Has This Been Tested?\r\n1. Insert an image block\r\n2. Open the block inspector\r\n3. Resize the image using the preset % amounts (e.g. 25%)\r\n4. Resize the image by manually entering a width and height\r\n5. Resize the image by using the drag handles\r\n6. Click _Reset_\r\n\r\nIn all cases, the width value, the height value, and the size of the image in the editor should reflect the entered size.\r\n\r\n## Screenshots (jpeg or gifs if applicable):\r\n\r\n![dimensions](https://user-images.githubusercontent.com/612155/37947253-c7d293cc-31d5-11e8-8c4c-96f9f829026d.png)"},"comment":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/comments/376786670","html_url":"https://github.com/WordPress/gutenberg/pull/5812#issuecomment-376786670","issue_url":"https://api.github.com/repos/WordPress/gutenberg/issues/5812","id":376786670,"user":{"login":"jasmussen","id":1204802,"avatar_url":"https://avatars3.githubusercontent.com/u/1204802?v=4","gravatar_id":"","url":"https://api.github.com/users/jasmussen","html_url":"https://github.com/jasmussen","followers_url":"https://api.github.com/users/jasmussen/followers","following_url":"https://api.github.com/users/jasmussen/following{/other_user}","gists_url":"https://api.github.com/users/jasmussen/gists{/gist_id}","starred_url":"https://api.github.com/users/jasmussen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasmussen/subscriptions","organizations_url":"https://api.github.com/users/jasmussen/orgs","repos_url":"https://api.github.com/users/jasmussen/repos","events_url":"https://api.github.com/users/jasmussen/events{/privacy}","received_events_url":"https://api.github.com/users/jasmussen/received_events","type":"User","site_admin":false},"created_at":"2018-03-28T07:18:26Z","updated_at":"2018-03-28T07:18:26Z","author_association":"CONTRIBUTOR","body":"> I could use some help with this. It's to do with how we set width: 100%; height: auto on our images in the editor and in the frontend, but I'm struggling to come up with a fix that allows for stretched images that are also responsive and work in different themes.\r\n\r\nThese are the inline styles we output, correct? This keeps coming back to bite us. CC: @mtias — I'd love for us to be able to rid of the inline styles. "}}
{"actor":{"display_login":"jasmussen"}}