diff --git a/src/pages/Config.svelte b/src/pages/Config.svelte index c8b98cb..972cbda 100644 --- a/src/pages/Config.svelte +++ b/src/pages/Config.svelte @@ -45,10 +45,16 @@ } } } + + $: scenarioTxt, windowHeight(); + let height; + function windowHeight() { + height = Math.round(scenarioTxt.split("\n").length) + 1; + } {#if show} -