Table: Tweak to type icon styles (#40596)
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user