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}`}/
)}