diff --git a/src/CharacterSheet.tsx b/src/CharacterSheet.tsx index 37b4a9e..61fb0ea 100644 --- a/src/CharacterSheet.tsx +++ b/src/CharacterSheet.tsx @@ -192,6 +192,11 @@ function apiURL(path: string) { return new URL(path, window.location.href).toString(); } +function autoResize(el: HTMLTextAreaElement) { + el.style.height = "auto"; + el.style.height = el.scrollHeight + "px"; +} + // Copy text to the clipboard. navigator.clipboard is only available in a // secure context (HTTPS or localhost); over plain HTTP it's undefined, so we // fall back to the deprecated execCommand("copy"), which still works there. @@ -1171,6 +1176,8 @@ export default function CharacterSheet() {