Skip to content

Commit a935627

Browse files
Now fixing the spacing of funder logos
With more help from CoPilot!
1 parent 9bac18e commit a935627

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

src/components/funders.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,26 @@ export const Funders = () => {
2929
organisations:
3030
</Text>
3131

32-
<Grid templateColumns='repeat(5, 1fr)' gap={6} my={4}>
33-
{funders.map((funders, index) => (
32+
<Grid
33+
templateColumns='repeat(5, minmax(auto, max-content))'
34+
gap={6}
35+
my={4}
36+
justifyContent='center'
37+
>
38+
{funders.map((funder, index) => (
3439
<GridItem
3540
as={Link}
36-
href={funders.url}
41+
href={funder.url}
3742
key={index}
3843
display='flex'
3944
alignItems='center'
4045
justifyContent='center'
46+
borderRight={
47+
index < funders.length - 1 ? '1px solid #ccc' : 'none'
48+
}
49+
pr={4}
4150
>
42-
<Image
43-
maxH={20}
44-
w={'auto'}
45-
src={funders.logo}
46-
alt={funders.name}
47-
/>
51+
<Image maxH={20} src={funder.logo} alt={funder.name} />
4852
</GridItem>
4953
))}
5054
</Grid>

0 commit comments

Comments
 (0)