Skip to content

Commit a69c402

Browse files
committed
fix: improve scrolling performance in Chrome with non-wrapped json examples
1 parent 9e2853c commit a69c402

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/JsonViewer/style.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const jsonStyles = css`
99
font-size: ${props => props.theme.typography.code.fontSize};
1010
1111
white-space: ${({ theme }) => (theme.typography.code.wrap ? 'pre-wrap' : 'pre')};
12+
contain: content;
1213
overflow-x: auto;
1314
1415
.callback-function {

0 commit comments

Comments
 (0)