Skip to content

Commit 3a68e30

Browse files
Fixed height issue
1 parent 1dfce8f commit 3a68e30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pages/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ export default function Home() {
9696
<div className="w-full">
9797
<CodeMirror
9898
autoFocus
99-
height="660px"
99+
height="90vh"
100100
theme={createTheme(CODE_EDITOR_THEME)}
101101
value={inputString}
102102
extensions={editorExtensions}
103103
onChange={(e) => setInputString(e)}
104-
className="h-full mt-1"
104+
className="h-full mt-1 overflow-y-scroll"
105105
/>
106106
</div>
107107
<div className="w-full relative">
@@ -115,12 +115,12 @@ export default function Home() {
115115
disabled={outputString === ""}
116116
/>
117117
<CodeMirror
118-
height="660px"
118+
height="90vh"
119119
theme={createTheme(CODE_EDITOR_THEME)}
120120
editable={false}
121121
value={outputString}
122122
extensions={editorExtensions}
123-
className="overflow-auto absolute h-full mt-1 w-full"
123+
className="overflow-y-scroll absolute h-full mt-1 w-full"
124124
/>
125125
</div>
126126
<div className="flex flex-col min-w-80 w-80 justify-start space-y-2 px-1 rounded">

0 commit comments

Comments
 (0)