File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/compass-crud/src/components Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import PropTypes from 'prop-types' ;
3- import { cx , KeylineCard } from '@mongodb-js/compass-components' ;
3+ import { css , cx , KeylineCard } from '@mongodb-js/compass-components' ;
44
55import type { JsonEditorProps } from './json-editor' ;
66import JsonEditor from './json-editor' ;
@@ -36,6 +36,10 @@ export type DocumentJsonViewProps = {
3636 | 'isExpanded'
3737> ;
3838
39+ const keylineCardCSS = css ( {
40+ overflow : 'hidden' ,
41+ } ) ;
42+
3943/**
4044 * Represents the list view of the documents tab.
4145 */
@@ -51,7 +55,7 @@ class DocumentJsonView extends React.Component<DocumentJsonViewProps> {
5155 return this . props . docs . map ( ( doc , i ) => {
5256 return (
5357 < li className = { LIST_ITEM_CLASS } data-testid = { LIST_ITEM_TEST_ID } key = { i } >
54- < KeylineCard >
58+ < KeylineCard className = { keylineCardCSS } >
5559 < JsonEditor
5660 key = { doc . uuid }
5761 doc = { doc }
You can’t perform that action at this time.
0 commit comments