Skip to content

Commit b769af2

Browse files
committed
✔ Few minor tweaks
1 parent 9171b5c commit b769af2

File tree

4 files changed

+7
-109
lines changed

4 files changed

+7
-109
lines changed

package-lock.json

Lines changed: 0 additions & 103 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
"private": true,
55
"dependencies": {
66
"codemirror": "^5.48.0",
7-
"highlight.js": "^9.15.8",
87
"react": "^16.8.6",
9-
"react-codemirror": "^1.0.0",
108
"react-codemirror2": "^6.0.0",
119
"react-dom": "^16.8.6",
1210
"react-scripts": "3.0.1"

src/App.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
.op{
2+
height: 300px;;
3+
}
4+
15
.CodeMirror{
26
font-family: monospace;
37
font-size: 21pt;
4-
height: 100%;
8+
height: 300px;
59
/* background-color: #44475a; */
610
}

src/App.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, { Component } from 'react';
2-
// import CodeMirror from 'react-codemirror';
32
import 'codemirror/lib/codemirror.css';
43
import './App.css'
54
import {Controlled as CodeMirror} from 'react-codemirror2'
@@ -13,7 +12,7 @@ export default class App extends Component {
1312
super();
1413
this.state = {
1514
name: 'CodeMirror',
16-
code: ':)'
15+
code: '🌹💕🐱‍🚀 MODE: XML'
1716
};
1817
}
1918

@@ -31,7 +30,7 @@ export default class App extends Component {
3130
};
3231
return (
3332
<div>
34-
<p>
33+
<p className="op">
3534
{this.state.code}
3635
</p>
3736
{/* <CodeMirror value={this.state.code} onChange={this.updateCode} options={options} autoFocus={true} /> */}

0 commit comments

Comments
 (0)