change
This commit is contained in:
+1
-1
@@ -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" />
|
||||
|
||||
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user