Skip to content

Commit af75a32

Browse files
Merge pull request #45 from bytekrunch/scroll-fix
Fixed height issue
2 parents c8efbd0 + 3a68e30 commit af75a32

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
@@ -132,12 +132,12 @@ export default function Home() {
132132
<div className="w-full">
133133
<CodeMirror
134134
autoFocus
135-
height="660px"
135+
height="90vh"
136136
theme={createTheme(CODE_EDITOR_THEME)}
137137
value={inputString}
138138
extensions={editorExtensions}
139139
onChange={(e) => setInputString(e)}
140-
className="h-full mt-1"
140+
className="h-full mt-1 overflow-y-scroll"
141141
/>
142142
</div>
143143
<div className="w-full relative">
@@ -151,12 +151,12 @@ export default function Home() {
151151
disabled={outputString === ""}
152152
/>
153153
<CodeMirror
154-
height="660px"
154+
height="90vh"
155155
theme={createTheme(CODE_EDITOR_THEME)}
156156
value={outputString}
157157
onChange={(e) => setOutputString(e)}
158158
extensions={editorExtensions}
159-
className="overflow-auto absolute h-full mt-1 w-full"
159+
className="overflow-y-scroll absolute h-full mt-1 w-full"
160160
/>
161161
</div>
162162
{diffOrMergeString && (

0 commit comments

Comments
 (0)