fix: improve scrolling performance in Chrome with non-wrapped json examples

This commit is contained in:
Roman Hotsiy 2018-10-23 16:45:04 +03:00
parent 9e2853c2fd
commit a69c402d9b
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

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