This commit is contained in:
Danilo Di Cuia
2022-12-31 17:49:30 +01:00
parent 7fbe99bf63
commit 483abab330
3 changed files with 15 additions and 12 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="it">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
+1
View File
@@ -107,6 +107,7 @@ function ImageUpload({ onImageURLSet }) {
case UPLOADING:
componente = (
<div style={{ width: "100%" }}>
<p style={{ fontFamily: "Lineatura" }}>un attimo sto caricando...</p>
<progress style={{ width: "100%" }} value={progress} max="100" />
</div>
);
+13 -11
View File
@@ -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}
</h1>
<p
style={{
display: "inline-block",
background: "black",
padding: "0px 6px",
paddingBottom: "4px",
}}
>
da {messaggioDaMostrare.autore}
</p>
{messaggioDaMostrare.autore && (
<p
style={{
display: "inline-block",
background: "black",
padding: "0px 6px",
paddingBottom: "4px",
}}
>
da {messaggioDaMostrare.autore}
</p>
)}
</div>
)}
</div>