You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by di...@apache.org on 2022/02/23 16:58:33 UTC

[superset] branch master updated: Fix database list (#18886)

This is an automated email from the ASF dual-hosted git repository.

diegopucci pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new f38bcab  Fix database list (#18886)
f38bcab is described below

commit f38bcab9367db6764de15bfa31560457f84b03cb
Author: Geido <60...@users.noreply.github.com>
AuthorDate: Wed Feb 23 18:56:41 2022 +0200

    Fix database list (#18886)
---
 docs/src/pages/index.tsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/docs/src/pages/index.tsx b/docs/src/pages/index.tsx
index c491201..9ac438a 100644
--- a/docs/src/pages/index.tsx
+++ b/docs/src/pages/index.tsx
@@ -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>
                   ),
                 )}