Prevent "EmptyViewAbsoluteCentered" from overlapping content

Regression 1f7fe5f20e
This commit is contained in:
schroda
2024-12-21 23:21:55 +01:00
parent 570b831604
commit a4f1aa3234
8 changed files with 8 additions and 30 deletions

View File

@@ -138,15 +138,12 @@ export function Sources({ tabsMenuHeight }: { tabsMenuHeight: number }) {
message={t('global.error.label.failed_to_load_data')}
messageExtra={error.message}
retry={() => refetch().catch(defaultPromiseErrorHandler('Sources::refetch'))}
topOffset={tabsMenuHeight}
/>
);
}
if (sources?.length === 0) {
return (
<EmptyViewAbsoluteCentered message={t('source.error.label.no_sources_found')} topOffset={tabsMenuHeight} />
);
return <EmptyViewAbsoluteCentered message={t('source.error.label.no_sources_found')} />;
}
return (