From b9a6c92ad16f164f5836ed6ecff66274d2b47bad Mon Sep 17 00:00:00 2001 From: Sachin Chaurasiya Date: Thu, 2 May 2024 15:30:11 +0530 Subject: [PATCH] minor: update the error fallback image and styling (#16100) * minor: update the error fallback image and styling * Update error fallback image and styling --- .../ui/src/assets/svg/om-upgrade.svg | 139 +++++++++--------- .../common/ErrorBoundary/ErrorFallback.tsx | 3 +- .../src/main/resources/ui/src/styles/app.less | 8 + 3 files changed, 77 insertions(+), 73 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/assets/svg/om-upgrade.svg b/openmetadata-ui/src/main/resources/ui/src/assets/svg/om-upgrade.svg index 40e3c0e3b29..93bfec1823e 100644 --- a/openmetadata-ui/src/main/resources/ui/src/assets/svg/om-upgrade.svg +++ b/openmetadata-ui/src/main/resources/ui/src/assets/svg/om-upgrade.svg @@ -1,78 +1,73 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + - - + \ No newline at end of file diff --git a/openmetadata-ui/src/main/resources/ui/src/components/common/ErrorBoundary/ErrorFallback.tsx b/openmetadata-ui/src/main/resources/ui/src/components/common/ErrorBoundary/ErrorFallback.tsx index 6960971537f..a5c06cb8764 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/common/ErrorBoundary/ErrorFallback.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/common/ErrorBoundary/ErrorFallback.tsx @@ -45,6 +45,7 @@ const ErrorFallback: React.FC = ({ return ( = ({ {isChunkLoadError ? t('label.refresh') : t('label.home')} } - icon={} + icon={} subTitle={message} title={title} /> diff --git a/openmetadata-ui/src/main/resources/ui/src/styles/app.less b/openmetadata-ui/src/main/resources/ui/src/styles/app.less index 10ed4d5f327..46c04263b48 100644 --- a/openmetadata-ui/src/main/resources/ui/src/styles/app.less +++ b/openmetadata-ui/src/main/resources/ui/src/styles/app.less @@ -771,3 +771,11 @@ a[href].link-text-grey, } } } + +.error-boundary-result { + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + height: 100%; +}