You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2021/01/25 13:12:09 UTC
[superset] 33/38: fix(explore): Certified metric icons are various
sizes (#12690)
This is an automated email from the ASF dual-hosted git repository.
villebro pushed a commit to branch 1.0
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 7e9a042ed1689aa142190141b8ac0ca3dee295a6
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 95b9d3f..9d47626 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;
+ }
}
`;