diff --git a/src/App.css b/src/App.css index c9fe660..99845ca 100644 --- a/src/App.css +++ b/src/App.css @@ -12,6 +12,16 @@ justify-content: center; } +.prevUplImg +{ + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; +} + + + @media print { .noprint diff --git a/src/components/Dog.tsx b/src/components/Dog.tsx index 2d2c5ae..12050f1 100644 --- a/src/components/Dog.tsx +++ b/src/components/Dog.tsx @@ -39,7 +39,7 @@ const Dog = () =>

phone: {phone}

pic: {picPath}

qr: {qrPath}

*/} - + : diff --git a/src/components/Img.tsx b/src/components/Img.tsx index 61e5539..3361b72 100644 --- a/src/components/Img.tsx +++ b/src/components/Img.tsx @@ -1,10 +1,10 @@ import React from 'react' -export default function Img({pth}: {pth: string}) +export default function Img({pth, className}: {pth: string, className: string | undefined}) { return (
- +
) } diff --git a/src/components/PreviewUpload.tsx b/src/components/PreviewUpload.tsx index cb092b4..0aea337 100644 --- a/src/components/PreviewUpload.tsx +++ b/src/components/PreviewUpload.tsx @@ -75,6 +75,7 @@ function PreviewUpload({chgFile}:{chgFile: any}) { onChange={handleChange} accept="image/jpg,.gif,.png,.svg,.webp audio/wav,.mp3" /> +
+
{file &&

Dimensions: {`${dimensionWidth} x ${dimensionHeight}`}

} ); diff --git a/src/components/Profil.tsx b/src/components/Profil.tsx index fd1007b..475844d 100644 --- a/src/components/Profil.tsx +++ b/src/components/Profil.tsx @@ -71,7 +71,7 @@ function Profil()

Profil

- {dog.data && } + {dog.data && } Bild ändern
diff --git a/src/components/Qr.css b/src/components/Qr.css index 06e5a19..e0f5b1b 100644 --- a/src/components/Qr.css +++ b/src/components/Qr.css @@ -1,10 +1,17 @@ img { - width: 2.4cm; + max-width: 300px; + max-height: 300px; background: #ffffff; } +.qrCodeImg +{ + max-width: 100%; + max-height: 100%; +} + .qrCodeBackFront { display: flex; @@ -52,6 +59,11 @@ img width: 2.4cm; } +.beschreibung +{ + font-size: x-small; +} + .vert { flex-direction: row-reverse; @@ -112,7 +124,7 @@ img .qr-input { - width: 50px; + width: 55px; } label diff --git a/src/components/Qr.tsx b/src/components/Qr.tsx index 1e42754..d511264 100644 --- a/src/components/Qr.tsx +++ b/src/components/Qr.tsx @@ -107,6 +107,7 @@ export default function Qr() //const handle drag sorting function handleSort() { +// console.log('handleSort current:' + dragItem.current); //duplicate items let _itemList = [...itemList]; @@ -141,12 +142,16 @@ export default function Qr() // 231 - itemList.map((item, index) => +// console.log('handleSort itemList:'); +// console.log(_itemList); + + _itemList.map((item, index) => { digit = 10**(3-item.ordernum); newItemOrder += (index+1) * digit; }); setItemOrder(newItemOrder); +// console.log('handleSort newItemOrder:' + newItemOrder); } function oneQrBlock() @@ -155,7 +160,7 @@ export default function Qr()
SCAN ME
- +
{((visibleItem & 0b100) > 0) &&
{dog.data.name}
} @@ -301,17 +306,19 @@ export default function Qr()
Reihenfolge
+
Ändern durch Drag'n Drop
{itemList.map((item, index) => (
(dragItem.current = index)} - onDragEnter={(e) => (dragOverItem.current = index)} + onDragStart={(e) => {dragItem.current = index; /* console.log('onDragStart index: ' + index); */}} + onDragEnter={(e) => {dragOverItem.current = index; /* console.log('onDragEnter index: ' + index); */}} onDragEnd={handleSort} - onDragOver={(e) => e.preventDefault()}> -
{item.name}
+ onDragOver={(e) => {e.preventDefault(); /* console.log('onDragEnter index: ' + index); */}} + > +
  • {item.name}
  • ))}