diff --git a/grafana-plugin/src/components/GTable/GTable.tsx b/grafana-plugin/src/components/GTable/GTable.tsx index 82444645..b251a4ee 100644 --- a/grafana-plugin/src/components/GTable/GTable.tsx +++ b/grafana-plugin/src/components/GTable/GTable.tsx @@ -1,7 +1,6 @@ import React, { useCallback, useMemo, ChangeEvent, ReactElement } from 'react'; import { css, cx } from '@emotion/css'; -import { GrafanaTheme2 } from '@grafana/data'; import { Pagination, Checkbox, Icon, useStyles2 } from '@grafana/ui'; import Table from 'rc-table'; import { TableProps } from 'rc-table/lib/Table'; @@ -136,7 +135,7 @@ export const GTable = (props: }, [rowSelection, columnsProp, data]); return ( -
+
expandable={expandable} rowKey={rowKey} @@ -156,20 +155,24 @@ export const GTable = (props: ); }; -const getGTableStyles = (_theme: GrafanaTheme2) => { - return { - root: css` - table { - width: 100%; - } - `, +const getGTableStyles = () => ({ + root: css` + table { + width: 100%; + } + `, - pagination: css` - margin-top: 20px; - `, + fixed: css` + table { + table-layout: fixed; + } + `, - checkbox: css` - display: inline-flex; - `, - }; -}; + pagination: css` + margin-top: 20px; + `, + + checkbox: css` + display: inline-flex; + `, +}); diff --git a/grafana-plugin/src/pages/schedules/Schedules.tsx b/grafana-plugin/src/pages/schedules/Schedules.tsx index 7a16317d..de49ee6d 100644 --- a/grafana-plugin/src/pages/schedules/Schedules.tsx +++ b/grafana-plugin/src/pages/schedules/Schedules.tsx @@ -115,6 +115,7 @@ class _SchedulesPage extends React.Component