diff options
Diffstat (limited to 'webui/src/components/Content/PreTag.tsx')
-rw-r--r-- | webui/src/components/Content/PreTag.tsx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/webui/src/components/Content/PreTag.tsx b/webui/src/components/Content/PreTag.tsx new file mode 100644 index 00000000..5256ab12 --- /dev/null +++ b/webui/src/components/Content/PreTag.tsx @@ -0,0 +1,17 @@ +import React from 'react'; + +import { makeStyles } from '@material-ui/styles'; + +const useStyles = makeStyles({ + tag: { + maxWidth: '100%', + overflowX: 'auto', + }, +}); + +const PreTag = (props: React.HTMLProps<HTMLPreElement>) => { + const classes = useStyles(); + return <pre className={classes.tag} {...props}></pre>; +}; + +export default PreTag; |