diff --git a/public/index.html b/public/index.html index f1a95b2..cf44daf 100644 --- a/public/index.html +++ b/public/index.html @@ -1,5 +1,5 @@ - + diff --git a/src/ImageUpload.js b/src/ImageUpload.js index f9217bd..4b4fbd5 100644 --- a/src/ImageUpload.js +++ b/src/ImageUpload.js @@ -107,6 +107,7 @@ function ImageUpload({ onImageURLSet }) { case UPLOADING: componente = (
+

un attimo sto caricando...

); diff --git a/src/Proiezione.js b/src/Proiezione.js index 6f5dc70..314c973 100644 --- a/src/Proiezione.js +++ b/src/Proiezione.js @@ -96,7 +96,7 @@ const Messaggio = ({ messaggiApprovati }) => { img.onload = (i) => { console.log("loaded"); console.log(img.width, img.height); - setImageWidth(img.width > img.height ? 600 : 200); + setImageWidth(img.width > img.height ? 600 : 400); showNextMessage(newMessage); }; img.src = newMessage.immagineURL; @@ -144,16 +144,18 @@ const Messaggio = ({ messaggiApprovati }) => { > {messaggioDaMostrare.testo} -

- da {messaggioDaMostrare.autore} -

+ {messaggioDaMostrare.autore && ( +

+ da {messaggioDaMostrare.autore} +

+ )} )}