From 88eacb801855062c7e448a12a34d1ed5a756049f Mon Sep 17 00:00:00 2001 From: Maria Katrin Bonde <78419778+MariaBonde@users.noreply.github.com> Date: Wed, 28 Aug 2024 14:27:22 +0200 Subject: [PATCH] picture loading is slow, attempting to fix (#536) --- src/hemsedal24/bilder.module.css | 1 + src/hemsedal24/bilder.tsx | 5 ++--- src/hemsedal24/components/Files.tsx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hemsedal24/bilder.module.css b/src/hemsedal24/bilder.module.css index 873556e53..202c3150e 100644 --- a/src/hemsedal24/bilder.module.css +++ b/src/hemsedal24/bilder.module.css @@ -205,6 +205,7 @@ html { } .container { margin-bottom: 4rem; + grid-template-columns: repeat(3, 1fr); } .uploadDropZone { diff --git a/src/hemsedal24/bilder.tsx b/src/hemsedal24/bilder.tsx index bf8d268b7..4247fb6cb 100644 --- a/src/hemsedal24/bilder.tsx +++ b/src/hemsedal24/bilder.tsx @@ -28,7 +28,7 @@ export default function Bilder() { console.log(data); setFilesData(data); }; - +console.log((width/21)+(((width / 100) | 0)/4)) const [filesData, setFilesData] = useState(null); useEffect(() => { fetchFiles(); @@ -40,8 +40,7 @@ export default function Bilder() { Tilbake )} :

Ingen bilder ennå!

} {isPopoverOpen && ( @@ -35,7 +35,7 @@ export default function Files({ data }: any) {
{data.files.map((file:any) =>
- {`${file.name}`}/ + {`${file.name}`}/
)}