Wrap the textarea.
This commit is contained in:
@@ -5,11 +5,16 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Editor-textarea {
|
.Editor-textwrapper {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
flex-basis: 0;
|
flex-basis: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.Editor-textarea {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.Editor-ast {
|
.Editor-ast {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
background: green;
|
background: green;
|
||||||
|
|||||||
@@ -7,7 +7,9 @@ function Editor() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="Editor">
|
<div className="Editor">
|
||||||
<textarea onChange={handleChange} className="Editor-textarea"></textarea>
|
<div className="Editor-textwrapper">
|
||||||
|
<textarea onChange={handleChange} className="Editor-textarea"></textarea>
|
||||||
|
</div>
|
||||||
<div className="Editor-ast"></div>
|
<div className="Editor-ast"></div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user