From 28ed423ae6e5a52f0cc81d0b051db638dfecdefb Mon Sep 17 00:00:00 2001 From: Gunshiz Date: Fri, 5 Jun 2026 18:24:51 +0700 Subject: [PATCH] feat: replace inputs with textareas in admin form and add URL auto-linking support for form labels and options --- app/form/admin/client.tsx | 8 ++++---- app/form/client.tsx | 41 ++++++++++++++++++++++++++++++++++++--- 2 files changed, 42 insertions(+), 7 deletions(-) diff --git a/app/form/admin/client.tsx b/app/form/admin/client.tsx index cfb4253..1272392 100644 --- a/app/form/admin/client.tsx +++ b/app/form/admin/client.tsx @@ -286,11 +286,11 @@ export default function FormEditorClient({ form, initialQuestions }: FormEditorC
- handleUpdateQuestion(q.id, { label: e.target.value })} placeholder="Question Text" - className="font-medium text-base w-full" + className="font-medium text-base w-full min-h-10 py-2" />
@@ -384,10 +384,10 @@ export default function FormEditorClient({ form, initialQuestions }: FormEditorC {(q.options || []).map((opt, optIdx) => (
- handleUpdateOption(q, optIdx, e.target.value)} - className="h-8 max-w-sm" + className="min-h-10 max-w-sm py-2" />