mirror of https://github.com/apache/superset.git
Fix database list (#18886)
This commit is contained in:
parent
0922c3ff2d
commit
f38bcab936
|
@ -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>
|
||||||
),
|
),
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in New Issue