mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 10:33:44 +03:00
fix: improve scrolling performance in Chrome with non-wrapped json examples
This commit is contained in:
parent
9e2853c2fd
commit
a69c402d9b
|
@ -9,6 +9,7 @@ export const jsonStyles = css`
|
|||
font-size: ${props => props.theme.typography.code.fontSize};
|
||||
|
||||
white-space: ${({ theme }) => (theme.typography.code.wrap ? 'pre-wrap' : 'pre')};
|
||||
contain: content;
|
||||
overflow-x: auto;
|
||||
|
||||
.callback-function {
|
||||
|
|
Loading…
Reference in New Issue
Block a user