mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 05:29:42 -06:00
Table: Tweak to type icon styles (#40596)
This commit is contained in:
parent
e226480e06
commit
d179c2a4e9
@ -61,7 +61,7 @@ function renderHeaderCell(column: any, tableStyles: TableStyles, field?: Field,
|
||||
title={column.render('Header')}
|
||||
>
|
||||
{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>
|
||||
|
@ -170,6 +170,10 @@ export const getTableStyles = (theme: GrafanaTheme2) => {
|
||||
cursor: pointer;
|
||||
padding: 0 ${theme.spacing(0.025)};
|
||||
`,
|
||||
typeIcon: css`
|
||||
margin-right: ${theme.spacing(1)};
|
||||
color: ${theme.colors.text.secondary};
|
||||
`,
|
||||
noData: css`
|
||||
align-items: center;
|
||||
display: flex;
|
||||
|
Loading…
Reference in New Issue
Block a user