diff --git a/src/components/SourceCode/SourceCode.tsx b/src/components/SourceCode/SourceCode.tsx index 8773c90314..8f40d4565f 100644 --- a/src/components/SourceCode/SourceCode.tsx +++ b/src/components/SourceCode/SourceCode.tsx @@ -9,8 +9,11 @@ const StyledPre = styled.pre` font-family: ${props => props.theme.code.fontFamily}; font-size: ${props => props.theme.code.fontSize}; overflow-x: auto; - font-size: 0.9em; margin: 0; + + word-break: break-all; + word-wrap: break-word; + white-space: pre-wrap; `; export interface SourceCodeProps {