mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
Fix database list (#18886)
This commit is contained in:
@@ -248,6 +248,11 @@ const CarouselSection = styled('div')`
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
const StyledDatabaseImg = styled.img`
|
||||
width: ${(props) => props.width};
|
||||
height: ${(props) => props.height};
|
||||
`;
|
||||
interface featureProps {
|
||||
icon: React.ReactNode,
|
||||
title: string,
|
||||
@@ -441,7 +446,7 @@ export default function Home(): JSX.Element {
|
||||
title, imgName: imageName, width, height,
|
||||
}) => (
|
||||
<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>
|
||||
),
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user