diff --git a/apps/web/src/lib/components/almoxarifado/ImageUpload.svelte b/apps/web/src/lib/components/almoxarifado/ImageUpload.svelte index cffbff0..d2b2d02 100644 --- a/apps/web/src/lib/components/almoxarifado/ImageUpload.svelte +++ b/apps/web/src/lib/components/almoxarifado/ImageUpload.svelte @@ -1,5 +1,5 @@ @@ -151,23 +317,34 @@ {:else} -
{ - if (e.key === 'Enter' || e.key === ' ') { - e.preventDefault(); - triggerFileInput(); - } - }} - > - -

Clique para fazer upload da imagem

-

- PNG, JPG ou GIF até {maxSizeMB}MB -

+
+
{ + if (e.key === 'Enter' || e.key === ' ') { + e.preventDefault(); + triggerFileInput(); + } + }} + > + +

Clique para fazer upload da imagem

+

+ PNG, JPG ou GIF até {maxSizeMB}MB +

+
+
ou
+
{/if} @@ -178,17 +355,89 @@ {/if} {#if preview} - +
+ + +
{/if}
+ +{#if showCamera} +
+
e.stopPropagation()} + > +
+

Capturar Foto

+ +
+ +
+ {#if showCamera} + + {/if} + {#if !capturing} +
+
+ +

Iniciando câmera...

+
+
+ {/if} +
+ +
+ + +
+
+
+{/if} +