diff --git a/packages/ui/src/App.tsx b/packages/ui/src/App.tsx index 53c4de739..74a885958 100644 --- a/packages/ui/src/App.tsx +++ b/packages/ui/src/App.tsx @@ -77,6 +77,7 @@ const App = () => { + } /> }> { /> } /> - } /> - }> {/* Sign-in */} diff --git a/packages/ui/src/pages/Consent/index.module.scss b/packages/ui/src/pages/Consent/index.module.scss index 008cbbaeb..22e47fdd3 100644 --- a/packages/ui/src/pages/Consent/index.module.scss +++ b/packages/ui/src/pages/Consent/index.module.scss @@ -1,12 +1,25 @@ @use '@/scss/underscore' as _; -.img { - width: 96px; - height: 96px; - @include _.image-align-center; - margin-bottom: _.unit(4); + +.viewBox { + position: absolute; + inset: 0; + overflow: auto; + + .container { + min-height: 100%; + @include _.flex_column(center, center); + } + + .img { + height: _.unit(10); + @include _.image-align-center; + margin-bottom: _.unit(5); + } + + .loadingWrapper { + height: _.unit(16); + @include _.flex_column(center, center); + } } -.loadingWrapper { - height: _.unit(12); -} diff --git a/packages/ui/src/pages/Consent/index.tsx b/packages/ui/src/pages/Consent/index.tsx index fe5fa4dd4..588e3ccea 100644 --- a/packages/ui/src/pages/Consent/index.tsx +++ b/packages/ui/src/pages/Consent/index.tsx @@ -1,7 +1,6 @@ import { conditional } from '@silverhand/essentials'; import { useEffect, useContext, useState } from 'react'; -import StaticPageLayout from '@/Layout/StaticPageLayout'; import { consent } from '@/apis/consent'; import { LoadingIcon } from '@/components/LoadingLayer'; import useApi from '@/hooks/use-api'; @@ -42,10 +41,12 @@ const Consent = () => { }, [asyncConsent, handleError]); return ( - - {brandingLogo && logo} -
{loading && }
-
+
+
+ {brandingLogo && logo} +
{loading && }
+
+
); };