Skip to content

Commit b448c48

Browse files
authored
Merge pull request #3442 from owenconti/bug/3435-image-png-responses
Add max-width
2 parents ae2c4e8 + ae901bc commit b448c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/components/response-body.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default class ResponseBody extends React.Component {
4040

4141
// Image
4242
} else if (/^image\//i.test(contentType)) {
43-
bodyEl = <img src={ window.URL.createObjectURL(content) } />
43+
bodyEl = <img style={{ maxWidth: "100%" }} src={ window.URL.createObjectURL(content) } />
4444

4545
// Audio
4646
} else if (/^audio\//i.test(contentType)) {

0 commit comments

Comments
 (0)