fix(photo): supprimer capture=environment — accès bibliothèque + appareil photo

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 <noreply@anthropic.com>
This commit is contained in:
2026-05-25 15:57:33 +02:00
parent 9aaa5fb562
commit de9a1e3c73
2 changed files with 1 additions and 2 deletions
@@ -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}
/>
+1 -1
View File
@@ -130,7 +130,7 @@ function NoteCard({ note, onEdit, onDelete, onAddPhoto, onAddAudio, onDeleteAtt
{/* Actions */}
<div style={{ display: 'flex', gap: 6 }}>
<input ref={photoRef} type="file" accept="image/*" capture="environment" style={{ display: 'none' }} onChange={e => { const f = e.target.files?.[0]; if (f) onAddPhoto(f); e.target.value = '' }} />
<input ref={photoRef} type="file" accept="image/*" style={{ display: 'none' }} onChange={e => { const f = e.target.files?.[0]; if (f) onAddPhoto(f); e.target.value = '' }} />
<button
onClick={() => photoRef.current?.click()}
title="Ajouter une photo"