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>
<html lang="en">
<html lang="it">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />

1
src/ImageUpload.js

@ -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>
);

4
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,6 +144,7 @@ const Messaggio = ({ messaggiApprovati }) => {
>
{messaggioDaMostrare.testo}
</h1>
{messaggioDaMostrare.autore && (
<p
style={{
display: "inline-block",
@ -154,6 +155,7 @@ const Messaggio = ({ messaggiApprovati }) => {
>
da {messaggioDaMostrare.autore}
</p>
)}
</div>
)}
</div>

Loading…
Cancel
Save