Skip to content

Commit 454e9af

Browse files
committed
Added max-width style to scale down large images
1 parent defc45f commit 454e9af

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)