From 3354d196fb496705cd518e712454df3f13c8c21e Mon Sep 17 00:00:00 2001 From: Josh Hunt Date: Thu, 29 Jun 2023 16:37:27 +0100 Subject: [PATCH] [v10.0.x] Login: Fix footer from displaying under the login box (#70909) Login: Fix footer from displaying under the login box (#70897) (cherry picked from commit ae2378395b48d2ffc3941e592cacc9f19e268207) --- .../app/core/components/Branding/Branding.tsx | 2 +- .../app/core/components/Login/LoginLayout.tsx | 24 +++++++++++++------ public/sass/components/_footer.scss | 2 -- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/public/app/core/components/Branding/Branding.tsx b/public/app/core/components/Branding/Branding.tsx index 474ad7f850a..3b1b302ce16 100644 --- a/public/app/core/components/Branding/Branding.tsx +++ b/public/app/core/components/Branding/Branding.tsx @@ -19,7 +19,7 @@ const LoginBackground: FC = ({ className, children }) => { const background = css` &:before { content: ''; - position: absolute; + position: fixed; left: 0; right: 0; bottom: 0; diff --git a/public/app/core/components/Login/LoginLayout.tsx b/public/app/core/components/Login/LoginLayout.tsx index b4ca25ce50c..5468eed512b 100644 --- a/public/app/core/components/Login/LoginLayout.tsx +++ b/public/app/core/components/Login/LoginLayout.tsx @@ -35,15 +35,17 @@ export const LoginLayout = ({ children, branding }: React.PropsWithChildren -
-
- -
-

{loginTitle}

- {subTitle &&

{subTitle}

} +
+
+
+ +
+

{loginTitle}

+ {subTitle &&

{subTitle}

} +
+
{children}
-
{children}
{branding?.hideFooter ? <> :