From 422bd3d7af61c026192bbecb2fe170fe25bc151f Mon Sep 17 00:00:00 2001 From: Miki Date: Mon, 12 Aug 2024 10:42:38 -0700 Subject: [PATCH 1/2] Allow customizing `restrictWidth` and `paddingSize` of `TableListView` Signed-off-by: Miki --- .../public/table_list_view/table_list_view.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/opensearch_dashboards_react/public/table_list_view/table_list_view.tsx b/src/plugins/opensearch_dashboards_react/public/table_list_view/table_list_view.tsx index a472461e0e3c..3994bd3e4f7b 100644 --- a/src/plugins/opensearch_dashboards_react/public/table_list_view/table_list_view.tsx +++ b/src/plugins/opensearch_dashboards_react/public/table_list_view/table_list_view.tsx @@ -46,6 +46,7 @@ import { EuiCallOut, EuiBasicTableColumn, EuiText, + EuiPageProps, } from '@elastic/eui'; import { HttpFetchError, ToastsStart } from 'opensearch-dashboards/public'; import { toMountPoint } from '../util'; @@ -81,6 +82,8 @@ export interface TableListViewProps { * If the table is not empty, this component renders its own h1 element using the same id. */ headingId?: string; + restrictWidth?: boolean; + paddingSize?: EuiPageProps['paddingSize']; } export interface TableListViewState { @@ -559,7 +562,8 @@ class TableListView extends React.Component Date: Tue, 13 Aug 2024 06:31:22 +0000 Subject: [PATCH 2/2] Changeset file for PR #7691 created/updated --- changelogs/fragments/7691.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/7691.yml diff --git a/changelogs/fragments/7691.yml b/changelogs/fragments/7691.yml new file mode 100644 index 000000000000..e42b7eb3ce88 --- /dev/null +++ b/changelogs/fragments/7691.yml @@ -0,0 +1,2 @@ +feat: +- Allow customizing `restrictWidth` and `paddingSize` of `TableListView` ([#7691](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7691)) \ No newline at end of file