Merge pull request #3442 from owenconti/bug/3435-image-png-responses
Add max-width
This commit is contained in:
@@ -40,7 +40,7 @@ export default class ResponseBody extends React.Component {
|
|||||||
|
|
||||||
// Image
|
// Image
|
||||||
} else if (/^image\//i.test(contentType)) {
|
} else if (/^image\//i.test(contentType)) {
|
||||||
bodyEl = <img src={ window.URL.createObjectURL(content) } />
|
bodyEl = <img style={{ maxWidth: "100%" }} src={ window.URL.createObjectURL(content) } />
|
||||||
|
|
||||||
// Audio
|
// Audio
|
||||||
} else if (/^audio\//i.test(contentType)) {
|
} else if (/^audio\//i.test(contentType)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user