Fix/Prevent manual resize of params input (#4008)

This commit is contained in:
Luc Mcgrady 2025-05-19 04:10:47 +01:00 committed by GitHub
parent 277061498d
commit ed13a351b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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>