diff --git a/packages/grafana-ui/src/components/Logs/LogDetailsRow.test.tsx b/packages/grafana-ui/src/components/Logs/LogDetailsRow.test.tsx index 4c1243f4161..781320c1f70 100644 --- a/packages/grafana-ui/src/components/Logs/LogDetailsRow.test.tsx +++ b/packages/grafana-ui/src/components/Logs/LogDetailsRow.test.tsx @@ -20,7 +20,13 @@ const setup = (propOverrides?: Partial) => { Object.assign(props, propOverrides); - return render(); + return render( + + + + +
+ ); }; describe('LogDetailsRow', () => { diff --git a/packages/grafana-ui/src/components/Logs/LogLabelStats.tsx b/packages/grafana-ui/src/components/Logs/LogLabelStats.tsx index 1130cc766e3..fd5aa50d4d5 100644 --- a/packages/grafana-ui/src/components/Logs/LogLabelStats.tsx +++ b/packages/grafana-ui/src/components/Logs/LogLabelStats.tsx @@ -15,10 +15,11 @@ const getStyles = stylesFactory((theme: GrafanaTheme) => { return { logsStats: css` label: logs-stats; - column-span: 2; background: inherit; color: ${theme.colors.text}; word-break: break-all; + width: fit-content; + max-width: 100%; `, logsStatsHeader: css` label: logs-stats__header; @@ -74,7 +75,7 @@ class UnThemedLogLabelStats extends PureComponent { const otherProportion = otherCount / total; return ( - +
{label}: {total} of {rowCount} rows have that {isLabel ? 'label' : 'field'} @@ -89,7 +90,7 @@ class UnThemedLogLabelStats extends PureComponent { )}
- +
); } }