Browse Source

change

master
Danilo Di Cuia 3 years ago
parent
commit
483abab330
  1. 2
      public/index.html
  2. 1
      src/ImageUpload.js
  3. 4
      src/Proiezione.js

2
public/index.html

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="it">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />

1
src/ImageUpload.js

@ -107,6 +107,7 @@ function ImageUpload({ onImageURLSet }) {
case UPLOADING: case UPLOADING:
componente = ( componente = (
<div style={{ width: "100%" }}> <div style={{ width: "100%" }}>
<p style={{ fontFamily: "Lineatura" }}>un attimo sto caricando...</p>
<progress style={{ width: "100%" }} value={progress} max="100" /> <progress style={{ width: "100%" }} value={progress} max="100" />
</div> </div>
); );

4
src/Proiezione.js

@ -96,7 +96,7 @@ const Messaggio = ({ messaggiApprovati }) => {
img.onload = (i) => { img.onload = (i) => {
console.log("loaded"); console.log("loaded");
console.log(img.width, img.height); console.log(img.width, img.height);
setImageWidth(img.width > img.height ? 600 : 200); setImageWidth(img.width > img.height ? 600 : 400);
showNextMessage(newMessage); showNextMessage(newMessage);
}; };
img.src = newMessage.immagineURL; img.src = newMessage.immagineURL;
@ -144,6 +144,7 @@ const Messaggio = ({ messaggiApprovati }) => {
> >
{messaggioDaMostrare.testo} {messaggioDaMostrare.testo}
</h1> </h1>
{messaggioDaMostrare.autore && (
<p <p
style={{ style={{
display: "inline-block", display: "inline-block",
@ -154,6 +155,7 @@ const Messaggio = ({ messaggiApprovati }) => {
> >
da {messaggioDaMostrare.autore} da {messaggioDaMostrare.autore}
</p> </p>
)}
</div> </div>
)} )}
</div> </div>

Loading…
Cancel
Save