aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Markdown/CodeBlock.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Markdown/CodeBlock.tsx')
-rw-r--r--src/lib/Markdown/CodeBlock.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/Markdown/CodeBlock.tsx b/src/lib/Markdown/CodeBlock.tsx
index c4478eb..5b8edec 100644
--- a/src/lib/Markdown/CodeBlock.tsx
+++ b/src/lib/Markdown/CodeBlock.tsx
@@ -7,9 +7,10 @@ import { makeStyles } from '@material-ui/core/styles';
const useStyles = makeStyles(theme => ({
root: {
background: theme.palette.background.default,
- padding: theme.spacing(2),
+ padding: theme.spacing(1),
overflowX: 'auto',
fontFamily: 'Monospace',
+ scrollbarColor: 'auto'
},
}));
@@ -17,7 +18,7 @@ const CodeBlock: React.FC<ParserPropTypes> = ({ rawLines }) => {
const classes = useStyles();
return (
<Paper variant="outlined" className={classes.root}>
- {rawLines.map(line => <> {line} <br/> </>)}
+ {rawLines.map(line => <pre>{line}</pre>)}
</Paper>
);
}