From a69c402d9b32b86e7dce35c52e24cb67a79523b4 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Tue, 23 Oct 2018 16:45:04 +0300 Subject: [PATCH] fix: improve scrolling performance in Chrome with non-wrapped json examples --- src/components/JsonViewer/style.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/JsonViewer/style.ts b/src/components/JsonViewer/style.ts index e2b2adceb0..14ef649255 100644 --- a/src/components/JsonViewer/style.ts +++ b/src/components/JsonViewer/style.ts @@ -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 {