Skip to content

Commit 5d7d2da

Browse files
committed
Fixed a UX issue the editor shifts one line up when the cursor is at the end.
1 parent 89b2f03 commit 5d7d2da

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/style.css

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,8 @@ div.toolbox>svg {
435435
display: flex;
436436
flex-direction: column;
437437
flex-basis: inherit;
438-
/*height: 33%;*/
439-
/*overflow: hidden;*/
438+
height: 100%;
439+
overflow: hidden;
440440
position: relative;
441441
background: var(--color-bg);
442442
transition: height 0.3s ease, width 0.3s ease;
@@ -534,9 +534,7 @@ div.toolbox>svg {
534534

535535
.CodeMirror {
536536
width: 100%;
537-
/*height: calc(100% - 25px);*/
538-
height: auto;
539-
/* 25px for header */
537+
height: 100%;
540538
font-size: var(--code-font-size);
541539
}
542540

0 commit comments

Comments
 (0)