Skip to content

Commit

Permalink
update row height
Browse files Browse the repository at this point in the history
  • Loading branch information
opauloh committed Oct 3, 2023
1 parent e77c944 commit 126272d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ export const CloudSecurityDataTable = ({
height: `calc(100vh - ${filters.length > 0 ? 454 : 414}px)`,
};

const rowHeightState =
uiSettings.get(ROW_HEIGHT_OPTION) === -1 ? 0 : uiSettings.get(ROW_HEIGHT_OPTION);

const loadingStyle = {
opacity: isLoading ? 1 : 0,
};
Expand Down Expand Up @@ -251,15 +254,15 @@ export const CloudSecurityDataTable = ({
services={services}
useNewFieldsApi
onUpdateRowsPerPage={onChangeItemsPerPage}
configRowHeight={uiSettings.get(ROW_HEIGHT_OPTION)}
rowHeightState={rowHeightState}
showMultiFields={uiSettings.get(SHOW_MULTIFIELDS)}
showTimeCol={false}
settings={settings}
onFetchMoreRecords={loadMore}
externalCustomRenderers={externalCustomRenderers}
rowHeightState={uiSettings.get(ROW_HEIGHT_OPTION)}
externalAdditionalControls={externalAdditionalControls}
gridStyleOverride={gridStyle}
rowLineHeightOverride="24px"
/>
</div>
</CellActionsProvider>
Expand Down

0 comments on commit 126272d

Please sign in to comment.