@@ -39,37 +39,42 @@ export const Sample: FC<PropsWithoutRef<SampleProps>> = ({ theme, ...props }) =>
39
39
return (
40
40
< Warpper { ...props } >
41
41
< Title > JavaScript</ Title >
42
- < CodeMirror value = { jsStr } height = "300px" theme = { theme } extensions = { [ color , langs . javascript ( ) ] } />
42
+ < CodeMirror value = { jsStr } height = "300px !important " theme = { theme } extensions = { [ color , langs . javascript ( ) ] } />
43
43
< Title > JSX</ Title >
44
- < CodeMirror value = { jsxStr } height = "300px" theme = { theme } extensions = { [ color , langs . jsx ( ) ] } />
44
+ < CodeMirror value = { jsxStr } height = "300px !important " theme = { theme } extensions = { [ color , langs . jsx ( ) ] } />
45
45
< Title > TypeScript</ Title >
46
- < CodeMirror value = { typescriptStr } height = "300px" theme = { theme } extensions = { [ color , langs . typescript ( ) ] } />
46
+ < CodeMirror
47
+ value = { typescriptStr }
48
+ height = "300px !important"
49
+ theme = { theme }
50
+ extensions = { [ color , langs . typescript ( ) ] }
51
+ />
47
52
< Title > TSX</ Title >
48
- < CodeMirror value = { tsxStr } height = "300px" theme = { theme } extensions = { [ color , langs . tsx ( ) ] } />
53
+ < CodeMirror value = { tsxStr } height = "300px !important " theme = { theme } extensions = { [ color , langs . tsx ( ) ] } />
49
54
< Title > JSON</ Title >
50
- < CodeMirror value = { jsonStr } height = "300px" theme = { theme } extensions = { [ color , langs . json ( ) ] } />
55
+ < CodeMirror value = { jsonStr } height = "300px !important " theme = { theme } extensions = { [ color , langs . json ( ) ] } />
51
56
< Title > HTML</ Title >
52
- < CodeMirror value = { htmlStr } height = "300px" theme = { theme } extensions = { [ color , langs . html ( ) ] } />
57
+ < CodeMirror value = { htmlStr } height = "300px !important " theme = { theme } extensions = { [ color , langs . html ( ) ] } />
53
58
< Title > Markdown</ Title >
54
- < CodeMirror value = { markdownStr } height = "300px" theme = { theme } extensions = { [ color , langs . markdown ( ) ] } />
59
+ < CodeMirror value = { markdownStr } height = "300px !important " theme = { theme } extensions = { [ color , langs . markdown ( ) ] } />
55
60
< Title > CSS</ Title >
56
- < CodeMirror value = { cssStr } height = "300px" theme = { theme } extensions = { [ color , langs . css ( ) ] } />
61
+ < CodeMirror value = { cssStr } height = "300px !important " theme = { theme } extensions = { [ color , langs . css ( ) ] } />
57
62
< Title > PHP</ Title >
58
- < CodeMirror value = { phpStr } height = "300px" theme = { theme } extensions = { [ color , langs . php ( ) ] } />
63
+ < CodeMirror value = { phpStr } height = "300px !important " theme = { theme } extensions = { [ color , langs . php ( ) ] } />
59
64
< Title > JAVA</ Title >
60
- < CodeMirror value = { javaStr } height = "300px" theme = { theme } extensions = { [ color , langs . java ( ) ] } />
65
+ < CodeMirror value = { javaStr } height = "300px !important " theme = { theme } extensions = { [ color , langs . java ( ) ] } />
61
66
< Title > Rust</ Title >
62
- < CodeMirror value = { rustStr } height = "300px" theme = { theme } extensions = { [ color , langs . rust ( ) ] } />
67
+ < CodeMirror value = { rustStr } height = "300px !important " theme = { theme } extensions = { [ color , langs . rust ( ) ] } />
63
68
< Title > Go</ Title >
64
- < CodeMirror value = { goStr } height = "300px" theme = { theme } extensions = { [ color , langs . go ( ) ] } />
69
+ < CodeMirror value = { goStr } height = "300px !important " theme = { theme } extensions = { [ color , langs . go ( ) ] } />
65
70
< Title > MySQL</ Title >
66
- < CodeMirror value = { mysqlStr } height = "300px" theme = { theme } extensions = { [ color , langs . mysql ( ) ] } />
71
+ < CodeMirror value = { mysqlStr } height = "300px !important " theme = { theme } extensions = { [ color , langs . mysql ( ) ] } />
67
72
< Title > Python</ Title >
68
- < CodeMirror value = { pythonStr } height = "300px" theme = { theme } extensions = { [ color , langs . python ( ) ] } />
73
+ < CodeMirror value = { pythonStr } height = "300px !important " theme = { theme } extensions = { [ color , langs . python ( ) ] } />
69
74
< Title > Shell</ Title >
70
- < CodeMirror value = { shellStr } height = "300px" theme = { theme } extensions = { [ color , langs . shell ( ) ] } />
75
+ < CodeMirror value = { shellStr } height = "300px !important " theme = { theme } extensions = { [ color , langs . shell ( ) ] } />
71
76
< Title > Swift</ Title >
72
- < CodeMirror value = { swiftStr } height = "300px" theme = { theme } extensions = { [ color , langs . swift ( ) ] } />
77
+ < CodeMirror value = { swiftStr } height = "300px !important " theme = { theme } extensions = { [ color , langs . swift ( ) ] } />
73
78
</ Warpper >
74
79
) ;
75
80
} ;
0 commit comments