mirror of
https://github.com/Redocly/redoc.git
synced 2024-12-01 21:03:45 +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};
|
font-size: ${props => props.theme.typography.code.fontSize};
|
||||||
|
|
||||||
white-space: ${({ theme }) => (theme.typography.code.wrap ? 'pre-wrap' : 'pre')};
|
white-space: ${({ theme }) => (theme.typography.code.wrap ? 'pre-wrap' : 'pre')};
|
||||||
|
contain: content;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
|
|
||||||
.callback-function {
|
.callback-function {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user