mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: add HEIC/HEIF extensions to file input accept attributes across tools
This commit is contained in:
@@ -57,7 +57,7 @@ export function FileUploadArea() {
|
|||||||
</div>
|
</div>
|
||||||
<input
|
<input
|
||||||
type="file"
|
type="file"
|
||||||
accept="image/*"
|
accept="image/*,.heic,.heif,.hif"
|
||||||
multiple
|
multiple
|
||||||
className="hidden"
|
className="hidden"
|
||||||
onChange={handleInputChange}
|
onChange={handleInputChange}
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ export function CompareSettings() {
|
|||||||
id="compare-second-image"
|
id="compare-second-image"
|
||||||
ref={secondInputRef}
|
ref={secondInputRef}
|
||||||
type="file"
|
type="file"
|
||||||
accept="image/*"
|
accept="image/*,.heic,.heif,.hif"
|
||||||
onChange={(e) => setSecondFile(e.target.files?.[0] ?? null)}
|
onChange={(e) => setSecondFile(e.target.files?.[0] ?? null)}
|
||||||
className="hidden"
|
className="hidden"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ export function ComposeSettings() {
|
|||||||
id="compose-overlay-image"
|
id="compose-overlay-image"
|
||||||
ref={overlayInputRef}
|
ref={overlayInputRef}
|
||||||
type="file"
|
type="file"
|
||||||
accept="image/*"
|
accept="image/*,.heic,.heif,.hif"
|
||||||
onChange={(e) => setOverlayFile(e.target.files?.[0] ?? null)}
|
onChange={(e) => setOverlayFile(e.target.files?.[0] ?? null)}
|
||||||
className="hidden"
|
className="hidden"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -671,7 +671,7 @@ export function QrGenerateSettings() {
|
|||||||
<input
|
<input
|
||||||
ref={logoInputRef}
|
ref={logoInputRef}
|
||||||
type="file"
|
type="file"
|
||||||
accept="image/*"
|
accept="image/*,.heic,.heif,.hif"
|
||||||
onChange={handleLogoUpload}
|
onChange={handleLogoUpload}
|
||||||
className="hidden"
|
className="hidden"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ export function WatermarkImageSettings() {
|
|||||||
<input
|
<input
|
||||||
ref={watermarkInputRef}
|
ref={watermarkInputRef}
|
||||||
type="file"
|
type="file"
|
||||||
accept="image/*"
|
accept="image/*,.heic,.heif,.hif"
|
||||||
onChange={(e) => setWatermarkFile(e.target.files?.[0] ?? null)}
|
onChange={(e) => setWatermarkFile(e.target.files?.[0] ?? null)}
|
||||||
className="hidden"
|
className="hidden"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user