From 4d474e8e4fa15279c9ae7029a1a95f62c73f8075 Mon Sep 17 00:00:00 2001 From: Ivan Ortega Alba Date: Tue, 25 Apr 2023 10:41:31 +0200 Subject: [PATCH] Fix icon size for data source picker list item (#67144) --- .../components/picker/DataSourceCard.tsx | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/public/app/features/datasources/components/picker/DataSourceCard.tsx b/public/app/features/datasources/components/picker/DataSourceCard.tsx index 2e4c5ddc799..8c365909ab3 100644 --- a/public/app/features/datasources/components/picker/DataSourceCard.tsx +++ b/public/app/features/datasources/components/picker/DataSourceCard.tsx @@ -17,13 +17,13 @@ export function DataSourceCard({ ds, onClick, selected }: DataSourceCardProps) {
- {ds.name} - | - {ds.meta.name} + {ds.name} + | + {ds.meta.name}
- - {`${ds.meta.name} + + {`${ds.meta.name} {ds.isDefault ? : null}
@@ -57,15 +57,19 @@ function getStyles(theme: GrafanaTheme2) { text-overflow: ellipsis; white-space: nowrap; `, - dsName: css` + logo: css` + width: 32px; + height: 32px; + `, + name: css` color: ${theme.colors.text.primary}; `, - dsType: css` + type: css` overflow: hidden; text-overflow: ellipsis; white-space: nowrap; `, - headingSeparator: css` + separator: css` margin: 0 ${theme.spacing(1)}; color: ${theme.colors.border.weak}; `,