From 483abab33011fd4bed5d1cbf932ede09fd3829da Mon Sep 17 00:00:00 2001 From: Danilo Di Cuia Date: Sat, 31 Dec 2022 17:49:30 +0100 Subject: [PATCH] change --- public/index.html | 2 +- src/ImageUpload.js | 1 + src/Proiezione.js | 24 +++++++++++++----------- 3 files changed, 15 insertions(+), 12 deletions(-) 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} +

+ )} )}