1
0
mirror of synced 2025-10-28 18:19:17 +00:00

dynamic user for authorized keys and bug fix

This commit is contained in:
Valentin
2023-09-13 15:46:40 +02:00
parent 7b0a757fc7
commit 092ab264bc
10 changed files with 55 additions and 14 deletions

View File

@@ -28,6 +28,20 @@
}
}
function resizeTextArea(textarea) {
const { style, value } = textarea;
style.height = style.minHeight = 'auto';
style.minHeight = `${ Math.min(textarea.scrollHeight + 4, parseInt(textarea.style.maxHeight)) }px`;
style.height = `${ textarea.scrollHeight + 4 }px`;
}
const textarea = document.getElementById('textarea');
textarea.addEventListener('input', () => {
resizeTextArea(textarea);
});
</script>
</body>
</html>