fix(editor): stretch the source textarea to fill its pane

This commit is contained in:
Julien Calixte
2026-06-17 01:18:34 +02:00
parent 8024f950e1
commit ab28e2541a

View File

@@ -98,7 +98,6 @@ function syncScroll() {
line-height: 1.6;
tab-size: 2;
white-space: pre;
overflow: auto;
}
.backdrop {
z-index: 0;
@@ -120,6 +119,11 @@ function syncScroll() {
}
.input {
z-index: 1;
/* A textarea has an intrinsic block size (its `rows`), so inset:0 alone won't
stretch it the way it does the plain-div backdrop — pin both axes to fill. */
width: 100%;
height: 100%;
overflow: auto;
resize: none;
outline: none;
background: transparent;