Fix/Prevent manual resize of params input

This commit is contained in:
Luc Mcgrady 2025-05-16 14:08:57 +01:00
parent d3d6bd8ce0
commit dd7f901de2
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C

View file

@ -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)}
></textarea>
<style>
textarea {
resize: none;
overflow-y: auto;
}
</style>