diff --git a/packages/grafana-ui/src/components/TimeSeries/TimeSeries.tsx b/packages/grafana-ui/src/components/TimeSeries/TimeSeries.tsx index ead1711993f..9285f6db117 100644 --- a/packages/grafana-ui/src/components/TimeSeries/TimeSeries.tsx +++ b/packages/grafana-ui/src/components/TimeSeries/TimeSeries.tsx @@ -29,7 +29,7 @@ export class UnthemedTimeSeries extends React.Component { return null; } - return ; + return ; }; render() { diff --git a/packages/grafana-ui/src/components/VizLayout/VizLayout.tsx b/packages/grafana-ui/src/components/VizLayout/VizLayout.tsx index 1ef59b16c23..ce5aa009179 100644 --- a/packages/grafana-ui/src/components/VizLayout/VizLayout.tsx +++ b/packages/grafana-ui/src/components/VizLayout/VizLayout.tsx @@ -35,7 +35,7 @@ export const VizLayout: VizLayoutComponentType = ({ width, height, legend, child return
{children(width, height)}
; } - const { placement, maxHeight, maxWidth } = legend.props; + const { placement, maxHeight = '35%', maxWidth = '60%' } = legend.props; let size: VizSize | null = null; diff --git a/packages/grafana-ui/src/components/VizLegend/VizLegendTable.tsx b/packages/grafana-ui/src/components/VizLegend/VizLegendTable.tsx index 8e3ea829c12..e79955f01ab 100644 --- a/packages/grafana-ui/src/components/VizLegend/VizLegendTable.tsx +++ b/packages/grafana-ui/src/components/VizLegend/VizLegendTable.tsx @@ -97,7 +97,6 @@ export const VizLegendTable = ({ const getStyles = (theme: GrafanaTheme) => ({ table: css` width: 100%; - margin-left: ${theme.spacing.sm}; th:first-child { width: 100%; }