Skip to content

Commit

Permalink
fix(try-it-out): fix the width of image responses (#7495)
Browse files Browse the repository at this point in the history
Refs #5578
  • Loading branch information
hkosova committed Sep 15, 2021
1 parent e5611d7 commit cc700f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/core/components/response-body.jsx
Expand Up @@ -129,7 +129,7 @@ export default class ResponseBody extends React.PureComponent {
if(contentType.includes("svg")) {
bodyEl = <div> { content } </div>
} else {
bodyEl = <img className="full-width" src={ window.URL.createObjectURL(content) } />
bodyEl = <img src={ window.URL.createObjectURL(content) } />
}

// Audio
Expand Down
5 changes: 0 additions & 5 deletions src/style/_layout.scss
Expand Up @@ -867,11 +867,6 @@
float: right;
}

img.full-width
{
width: 100%;
}

.svg-assets
{
position: absolute;
Expand Down

0 comments on commit cc700f0

Please sign in to comment.