fix(editor): stretch the source textarea to fill its pane
This commit is contained in:
@@ -98,7 +98,6 @@ function syncScroll() {
|
|||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
tab-size: 2;
|
tab-size: 2;
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
overflow: auto;
|
|
||||||
}
|
}
|
||||||
.backdrop {
|
.backdrop {
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
@@ -120,6 +119,11 @@ function syncScroll() {
|
|||||||
}
|
}
|
||||||
.input {
|
.input {
|
||||||
z-index: 1;
|
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;
|
resize: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
|||||||
Reference in New Issue
Block a user