Table: Tweak to type icon styles (#40596)

This commit is contained in:
Torkel Ödegaard
2021-10-19 08:53:56 +02:00
committed by GitHub
parent e226480e06
commit d179c2a4e9
2 changed files with 5 additions and 1 deletions
@@ -61,7 +61,7 @@ function renderHeaderCell(column: any, tableStyles: TableStyles, field?: Field,
title={column.render('Header')} title={column.render('Header')}
> >
{showTypeIcons && ( {showTypeIcons && (
<Icon name={getFieldTypeIcon(field)} title={field?.type} size="sm" style={{ marginRight: '8px' }} /> <Icon name={getFieldTypeIcon(field)} title={field?.type} size="sm" className={tableStyles.typeIcon} />
)} )}
<div>{column.render('Header')}</div> <div>{column.render('Header')}</div>
<div> <div>
@@ -170,6 +170,10 @@ export const getTableStyles = (theme: GrafanaTheme2) => {
cursor: pointer; cursor: pointer;
padding: 0 ${theme.spacing(0.025)}; padding: 0 ${theme.spacing(0.025)};
`, `,
typeIcon: css`
margin-right: ${theme.spacing(1)};
color: ${theme.colors.text.secondary};
`,
noData: css` noData: css`
align-items: center; align-items: center;
display: flex; display: flex;