From de9a1e3c7389844e153b83317b5a4dfc394154db Mon Sep 17 00:00:00 2001 From: Gilles Soulier Date: Mon, 25 May 2026 15:57:33 +0200 Subject: [PATCH] =?UTF-8?q?fix(photo):=20supprimer=20capture=3Denvironment?= =?UTF-8?q?=20=E2=80=94=20acc=C3=A8s=20biblioth=C3=A8que=20+=20appareil=20?= =?UTF-8?q?photo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sans cet attribut, iOS affiche le menu natif (Prendre une photo / Bibliothèque / Fichiers) et Android propose un sélecteur de source. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/components/todos/TodoForm.tsx | 1 - frontend/src/pages/NotesPage.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/components/todos/TodoForm.tsx b/frontend/src/components/todos/TodoForm.tsx index 9d8ad65..e0fccca 100644 --- a/frontend/src/components/todos/TodoForm.tsx +++ b/frontend/src/components/todos/TodoForm.tsx @@ -292,7 +292,6 @@ export default function TodoForm({ onSubmit, onCancel, initialValues, submitLabe ref={fileRef} type="file" accept="image/*" - capture="environment" style={{ display: 'none' }} onChange={handlePhotoCapture} /> diff --git a/frontend/src/pages/NotesPage.tsx b/frontend/src/pages/NotesPage.tsx index 1fd48db..8510a1f 100644 --- a/frontend/src/pages/NotesPage.tsx +++ b/frontend/src/pages/NotesPage.tsx @@ -130,7 +130,7 @@ function NoteCard({ note, onEdit, onDelete, onAddPhoto, onAddAudio, onDeleteAtt {/* Actions */}
- { const f = e.target.files?.[0]; if (f) onAddPhoto(f); e.target.value = '' }} /> + { const f = e.target.files?.[0]; if (f) onAddPhoto(f); e.target.value = '' }} />