mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-11 03:16:48 +03:00
fix: wrap text in code samples
This commit is contained in:
parent
ef4e6d8ae2
commit
6c71a668f2
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user