diff --git a/components/system/components/CodeBlock.js b/components/system/components/CodeBlock.js index 66146ac3..d7f29cdb 100644 --- a/components/system/components/CodeBlock.js +++ b/components/system/components/CodeBlock.js @@ -14,14 +14,18 @@ const STYLES_CODE_BLOCK = css` box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2); border-radius: 4px; padding: 24px; + + * { + white-space: pre-wrap; + overflow-wrap: break-word; + } `; -const STYLES_PADDING = css` +const STYLES_LINE = css` box-sizing: border-box; display: flex; align-items: flex-start; justify-content: space-between; - white-space: pre-wrap; `; const STYLES_PRE = css` @@ -58,7 +62,7 @@ export class CodeBlock extends React.Component {
{element}