From dd7f901de2d6b1579b687d1fee06f69a9328b67b Mon Sep 17 00:00:00 2001 From: Luc Mcgrady Date: Fri, 16 May 2025 14:08:57 +0100 Subject: [PATCH] Fix/Prevent manual resize of params input --- ts/routes/deck-options/ParamsInput.svelte | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ts/routes/deck-options/ParamsInput.svelte b/ts/routes/deck-options/ParamsInput.svelte index 5bed775cf..595e02c14 100644 --- a/ts/routes/deck-options/ParamsInput.svelte +++ b/ts/routes/deck-options/ParamsInput.svelte @@ -14,7 +14,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html function updateHeight() { if (taRef) { taRef.style.height = "auto"; - taRef.style.height = `${taRef.scrollHeight}px`; + // +2 for "overflow-y: auto" in case js breaks + taRef.style.height = `${taRef.scrollHeight + 2}px`; } } @@ -45,3 +46,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html class="w-100" placeholder={render(defaults)} > + +