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:
@@ -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}
|
||||
/>
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user