mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Truncate text * Replace HorizontalGroup. * Add loading spinner * increase modal width Co-authored-by: joshhunt <josh@trtr.co>
69 lines
1.2 KiB
TypeScript
69 lines
1.2 KiB
TypeScript
import { css } from '@emotion/css';
|
|
import { GrafanaTheme2 } from '@grafana/data';
|
|
|
|
const getStyles = (theme: GrafanaTheme2) => ({
|
|
table: css({
|
|
width: '100%',
|
|
tableLayout: 'fixed',
|
|
}),
|
|
|
|
tableScroller: css({
|
|
maxHeight: '50vh',
|
|
overflow: 'auto',
|
|
}),
|
|
|
|
header: css({
|
|
background: theme.colors.background.secondary,
|
|
}),
|
|
|
|
row: css({
|
|
borderBottom: `1px solid ${theme.colors.border.weak}`,
|
|
|
|
'&:last-of-type': {
|
|
borderBottomColor: theme.colors.border.medium,
|
|
},
|
|
}),
|
|
|
|
disabledRow: css({
|
|
opacity: 0.5,
|
|
}),
|
|
|
|
cell: css({
|
|
padding: theme.spacing(1, 0),
|
|
width: '25%',
|
|
overflow: 'hidden',
|
|
textOverflow: 'ellipsis',
|
|
'&:first-of-type': {
|
|
width: '50%',
|
|
padding: theme.spacing(1, 0, 1, 2),
|
|
},
|
|
}),
|
|
|
|
collapseButton: css({ margin: 0 }),
|
|
|
|
loadingCell: css({
|
|
textAlign: 'center',
|
|
}),
|
|
|
|
spinner: css({
|
|
marginBottom: 0,
|
|
}),
|
|
|
|
nestedEntry: css({
|
|
display: 'flex',
|
|
}),
|
|
|
|
entryContentItem: css({
|
|
margin: theme.spacing(0, 1, 0, 0),
|
|
}),
|
|
|
|
truncated: css({
|
|
minWidth: 0,
|
|
overflow: 'hidden',
|
|
textOverflow: 'ellipsis',
|
|
whiteSpace: 'nowrap',
|
|
}),
|
|
});
|
|
|
|
export default getStyles;
|