Wrap the textarea.

This commit is contained in:
Tom Alexander 2024-01-12 22:16:31 -05:00
parent a1b1e9e5c5
commit 636f2dabb8
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 9 additions and 2 deletions

View File

@ -5,11 +5,16 @@
width: 100%;
}
.Editor-textarea {
.Editor-textwrapper {
flex: 1;
flex-basis: 0;
}
.Editor-textarea {
width: 100%;
height: 100%;
}
.Editor-ast {
flex: 1;
background: green;

View File

@ -7,7 +7,9 @@ function Editor() {
return (
<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>
);