diff --git a/gdn-app/src/components/CNoteCreator.vue b/gdn-app/src/components/CNoteCreator.vue
index 135c06d..23388ee 100644
--- a/gdn-app/src/components/CNoteCreator.vue
+++ b/gdn-app/src/components/CNoteCreator.vue
@@ -8,36 +8,49 @@ const emit = defineEmits<{
(e: "finish", text: string): void;
}>();
-const input = useTemplateRef
("input");
+const input = useTemplateRef("input");
const text = ref("");
-onMounted(() => input.value?.focus());
+onMounted(() => {
+ input.value?.focus();
+ updateTextareaHeight();
+});
+
+function updateTextareaHeight() {
+ if (!input.value) return;
+ input.value.style.height = "0px";
+ input.value.style.height = `${input.value.scrollHeight}px`;
+}
-
+
-
+
-
+ @input="updateTextareaHeight()"
+ >
-
-
-
+
+
+
+
+
-
-
-
+
+
+
+
+