Skip to content

Commit

Permalink
fix: wrap text in code samples
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Jan 24, 2018
1 parent ef4e6d8 commit 6c71a66
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/SourceCode/SourceCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6c71a66

Please sign in to comment.