File tree Expand file tree Collapse file tree 2 files changed +12
-21
lines changed
packages/compass-schema-validation/src/components Expand file tree Collapse file tree 2 files changed +12
-21
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import ValidationStates from './validation-states' ;
3- import { css , WorkspaceContainer } from '@mongodb-js/compass-components' ;
4-
5- const styles = css ( {
6- display : 'flex' ,
7- flexDirection : 'column' ,
8- flexGrow : 1 ,
9- height : '100%' ,
10- } ) ;
3+ import { WorkspaceContainer } from '@mongodb-js/compass-components' ;
114
125/**
136 * The core schema validation component.
147 */
158export function CompassSchemaValidation ( ) {
169 return (
17- < div className = { styles } data-testid = "compass-schema-validation" >
18- < WorkspaceContainer >
19- < ValidationStates />
20- </ WorkspaceContainer >
21- </ div >
10+ < WorkspaceContainer data-testid = "compass-schema-validation" >
11+ < ValidationStates />
12+ </ WorkspaceContainer >
2213 ) ;
2314}
Original file line number Diff line number Diff line change @@ -20,29 +20,29 @@ const SAMPLE_DEFINITION = `A sample is fetched from a sample-space of ${SAMPLE_S
2020
2121/**
2222 * The Sample Documents editor component.
23- */
24-
23+ **/
2524const sampleDocumentsSectionStyles = css ( {
26- marginTop : spacing [ 4 ] ,
25+ marginTop : spacing [ 600 ] ,
2726 display : 'flex' ,
2827 flexDirection : 'column' ,
29- gap : spacing [ 2 ] ,
28+ gap : spacing [ 200 ] ,
3029} ) ;
3130
3231const sampleDocumentsStyles = css ( {
3332 display : 'flex' ,
34- gap : spacing [ 3 ] ,
33+ gap : spacing [ 400 ] ,
3534} ) ;
3635
3736const sampleDocumentStyles = css ( {
38- flex : 1 ,
37+ overflow : 'auto' ,
38+ flex : '50%' ,
3939} ) ;
4040
4141const documentHeadingStyles = css ( {
4242 display : 'flex' ,
4343 alignItems : 'center' ,
44- gap : spacing [ 1 ] ,
45- marginBottom : spacing [ 3 ] ,
44+ gap : spacing [ 100 ] ,
45+ marginBottom : spacing [ 400 ] ,
4646} ) ;
4747
4848const matchingStylesLight = css ( {
You can’t perform that action at this time.
0 commit comments