fix: wrap text in code samples

This commit is contained in:
Roman Hotsiy 2018-01-24 11:53:21 +02:00
parent ef4e6d8ae2
commit 6c71a668f2
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -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 {