|
|
@ -44,8 +44,8 @@ export function useTableStyles(theme: GrafanaTheme2, cellHeightOption: TableCell |
|
|
|
alignItems: 'center', |
|
|
|
alignItems: 'center', |
|
|
|
borderRight: `1px solid ${borderColor}`, |
|
|
|
borderRight: `1px solid ${borderColor}`, |
|
|
|
|
|
|
|
|
|
|
|
color: rowStyled ? 'inherit' : color ?? undefined, |
|
|
|
color: rowStyled ? 'inherit' : (color ?? undefined), |
|
|
|
background: rowStyled ? undefined : background ?? undefined, |
|
|
|
background: rowStyled ? undefined : (background ?? undefined), |
|
|
|
backgroundClip: 'padding-box', |
|
|
|
backgroundClip: 'padding-box', |
|
|
|
|
|
|
|
|
|
|
|
'&:last-child:not(:only-child)': { |
|
|
|
'&:last-child:not(:only-child)': { |
|
|
@ -60,7 +60,7 @@ export function useTableStyles(theme: GrafanaTheme2, cellHeightOption: TableCell |
|
|
|
wordBreak: textShouldWrap ? 'break-word' : undefined, |
|
|
|
wordBreak: textShouldWrap ? 'break-word' : undefined, |
|
|
|
whiteSpace: textShouldWrap && overflowOnHover ? 'normal' : 'nowrap', |
|
|
|
whiteSpace: textShouldWrap && overflowOnHover ? 'normal' : 'nowrap', |
|
|
|
boxShadow: overflowOnHover ? `0 0 2px ${theme.colors.primary.main}` : undefined, |
|
|
|
boxShadow: overflowOnHover ? `0 0 2px ${theme.colors.primary.main}` : undefined, |
|
|
|
background: rowStyled ? 'inherit' : backgroundHover ?? theme.colors.background.primary, |
|
|
|
background: rowStyled ? 'inherit' : (backgroundHover ?? theme.colors.background.primary), |
|
|
|
zIndex: 1, |
|
|
|
zIndex: 1, |
|
|
|
'.cellActions': { |
|
|
|
'.cellActions': { |
|
|
|
color: '#FFF', |
|
|
|
color: '#FFF', |
|
|
|