Skip to content

Commit

Permalink
fix for content overflow in console
Browse files Browse the repository at this point in the history
  • Loading branch information
rrcobb committed May 7, 2021
1 parent efada58 commit fafbddb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion JsDemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const JsDemo = ({children, defer = false}) => {
Run
</button>
)}
<div className={styles.output}>
<div className={styles.content}>
<iframe
className={clsx(styles.frame, !hasHtml && styles.hide)}
srcDoc={
Expand Down
3 changes: 2 additions & 1 deletion demo.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ div:global(.language-css)::before {
grid-area: label;
}

.result .output {
.result .content {
grid-area: output;
width: 100%;
display: flex;
Expand All @@ -172,6 +172,7 @@ div:global(.language-css)::before {
padding: 8px;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
overflow-y: scroll;
}

.result .console .error {
Expand Down

0 comments on commit fafbddb

Please sign in to comment.