From ab28e2541ab928157719cf91bf389aa2d244d2c0 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Wed, 17 Jun 2026 01:18:34 +0200 Subject: [PATCH] fix(editor): stretch the source textarea to fill its pane --- src/components/PlanEditor.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/PlanEditor.vue b/src/components/PlanEditor.vue index 4681b6c..9b84f4d 100644 --- a/src/components/PlanEditor.vue +++ b/src/components/PlanEditor.vue @@ -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;