diff --git a/src/shared/components/DynamicPageComponent/DynamicPageComponent.scss b/src/shared/components/DynamicPageComponent/DynamicPageComponent.scss index 7baa6afe65..94f9751376 100644 --- a/src/shared/components/DynamicPageComponent/DynamicPageComponent.scss +++ b/src/shared/components/DynamicPageComponent/DynamicPageComponent.scss @@ -39,6 +39,10 @@ border-radius: 5px; } } + + &::part(fit-content) { + padding: 0; + } } .header-wrapper { diff --git a/src/shared/components/GenericList/GenericList.js b/src/shared/components/GenericList/GenericList.js index 459accec3a..adff766c65 100644 --- a/src/shared/components/GenericList/GenericList.js +++ b/src/shared/components/GenericList/GenericList.js @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import React, { useEffect, useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { useRecoilState, useRecoilValue } from 'recoil'; -import { Table, TableCell, TableRow } from '@ui5/webcomponents-react'; +import { Table } from '@ui5/webcomponents-react'; import { useNavigate } from 'react-router-dom'; import { BodyFallback, @@ -45,19 +45,19 @@ const defaultSearch = { }; export const GenericList = ({ - entries, - actions, + entries = [], + actions = [], extraHeaderContent, title, headerRenderer, rowRenderer, testid, - serverDataError, - serverDataLoading, + serverDataError = null, + serverDataLoading = false, pagination, sortBy, - notFoundMessage, - searchSettings, + notFoundMessage = 'components.generic-list.messages.not-found', + searchSettings = defaultSearch, disableMargin, emptyListProps = null, columnLayout = null, @@ -394,7 +394,7 @@ export const GenericList = ({ headerActions={!headerActionsEmpty && headerActions} data-testid={testid} disableMargin - className={className} + className={`${className} ${disableMargin ? {} : 'sap-margin-small'}`} >