Fix database list (#18886)

This commit is contained in:
Geido 2022-02-23 18:56:41 +02:00 committed by GitHub
parent 0922c3ff2d
commit f38bcab936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -248,6 +248,11 @@ const CarouselSection = styled('div')`
} }
} }
`; `;
const StyledDatabaseImg = styled.img`
width: ${(props) => props.width};
height: ${(props) => props.height};
`;
interface featureProps { interface featureProps {
icon: React.ReactNode, icon: React.ReactNode,
title: string, title: string,
@ -441,7 +446,7 @@ export default function Home(): JSX.Element {
title, imgName: imageName, width, height, title, imgName: imageName, width, height,
}) => ( }) => (
<li> <li>
<img src={`img/databases/${imageName}`} width={width} height={height || 50} title={title} /> <StyledDatabaseImg src={`img/databases/${imageName}`} title={title} width={width || 'auto'} height={height || '50px'}/>
</li> </li>
), ),
)} )}