You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by yj...@apache.org on 2021/01/22 21:15:10 UTC

[superset] branch master updated: fix(explore): Certified metric icons are various sizes (#12690)

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

yjc 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 b32b6cd  fix(explore): Certified metric icons are various sizes (#12690)
b32b6cd is described below

commit b32b6cd5deee536b96c58cabf5591aaef505779e
Author: Geido <60...@users.noreply.github.com>
AuthorDate: Fri Jan 22 22:14:40 2021 +0100

    fix(explore): Certified metric icons are various sizes (#12690)
---
 superset-frontend/src/explore/components/DatasourcePanel.tsx | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/superset-frontend/src/explore/components/DatasourcePanel.tsx b/superset-frontend/src/explore/components/DatasourcePanel.tsx
index e6bcf31..37ab1e9 100644
--- a/superset-frontend/src/explore/components/DatasourcePanel.tsx
+++ b/superset-frontend/src/explore/components/DatasourcePanel.tsx
@@ -153,9 +153,14 @@ const LabelContainer = styled.div`
     display: inline;
   }
 
-  .metric-option > .option-label {
-    overflow: hidden;
-    text-overflow: ellipsis;
+  .metric-option {
+    & > svg {
+      min-width: ${({ theme }) => `${theme.gridUnit * 4}px`};
+    }
+    & > .option-label {
+      overflow: hidden;
+      text-overflow: ellipsis;
+    }
   }
 `;