From f44b3108672a1e7e420daf68a9580285da00cb18 Mon Sep 17 00:00:00 2001
From: Serge Bibauw <sbibauw@gmail.com>
Date: Thu, 24 Apr 2025 17:36:32 +0200
Subject: [PATCH] Admin Task creation form: 2 rows for textareas

---
 frontend/src/lang/fr.json                       | 6 +++---
 frontend/src/routes/admin/tasks/TaskForm.svelte | 3 +++
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/frontend/src/lang/fr.json b/frontend/src/lang/fr.json
index 331a6e4a..99d79554 100644
--- a/frontend/src/lang/fr.json
+++ b/frontend/src/lang/fr.json
@@ -408,9 +408,9 @@
 		"editTitle": "Modifier la tâche",
 		"level": "Niveau CEFR",
 		"shortTitle": "Nom de la tâche (max 5 mots)",
-		"instructions": "Instructions pour le tuteur (plusieurs lignes si besoin)",
-		"learnerInstructions": "Instructions pour l'apprenant (plusieurs lignes si besoin)",
-		"examples": "Exemples (plusieurs lignes si besoin)",
+		"instructions": "Instructions pour le tuteur",
+		"learnerInstructions": "Instructions pour l'apprenant",
+		"examples": "Exemples",
 		"create": "Créer une nouvelle tâche",
 		"taskInProgress": "Tâche en cours",
 		"taskFinished": "Tâche terminée avec succès",
diff --git a/frontend/src/routes/admin/tasks/TaskForm.svelte b/frontend/src/routes/admin/tasks/TaskForm.svelte
index 42c0fb29..a70a40f1 100644
--- a/frontend/src/routes/admin/tasks/TaskForm.svelte
+++ b/frontend/src/routes/admin/tasks/TaskForm.svelte
@@ -54,6 +54,7 @@
 		<label class="label" for="instructions">{$t('tasks.instructions')}</label>
 		<textarea
 			use:autosize
+			rows=2
 			class="input w-full"
 			id="instructions"
 			name="instructions"
@@ -63,6 +64,7 @@
 		<label class="label" for="learnerInstructions">{$t('tasks.learnerInstructions')}</label>
 		<textarea
 			use:autosize
+			rows=2
 			class="input w-full"
 			id="learnerInstructions"
 			name="learnerInstructions"
@@ -72,6 +74,7 @@
 		<label class="label" for="examples">{$t('tasks.examples')} *</label>
 		<textarea
 			use:autosize
+			rows=2
 			class="input w-full"
 			id="examples"
 			name="examples"
-- 
GitLab