feat(photo-upload): Picker ohne capture -> auch gespeicherte Fotos
All checks were successful
Build & Publish Docker Image / build-and-push (push) Successful in 2m26s
All checks were successful
Build & Publish Docker Image / build-and-push (push) Successful in 2m26s
capture="environment" zwang Mobile-Browser in den Kamera-Modus. Ohne das Attribut zeigt der Browser auf Mobile die volle Auswahl (Kamera / Fotomediathek / Datei) -- besser fuer Tablets und User, die ein schon existierendes Kochbuch-Foto verwenden wollen. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -94,11 +94,12 @@
|
|||||||
<Camera size={18} strokeWidth={2} />
|
<Camera size={18} strokeWidth={2} />
|
||||||
<span>Foto wählen oder aufnehmen</span>
|
<span>Foto wählen oder aufnehmen</span>
|
||||||
</button>
|
</button>
|
||||||
|
<!-- Ohne `capture`-Attribut: Browser zeigt auf Mobile die volle Auswahl
|
||||||
|
(Kamera / Fotomediathek / Datei), statt direkt die Kamera zu oeffnen. -->
|
||||||
<input
|
<input
|
||||||
bind:this={fileInput}
|
bind:this={fileInput}
|
||||||
type="file"
|
type="file"
|
||||||
accept="image/*"
|
accept="image/*"
|
||||||
capture="environment"
|
|
||||||
hidden
|
hidden
|
||||||
onchange={onPick}
|
onchange={onPick}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user