From 741e1bb7e942553e7b829406c826d7c77205d15f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 22 Jan 2020 11:06:12 +0100 Subject: [PATCH] Login: Better auto sizing of login logo (#21645) --- .../app/core/components/Branding/Branding.tsx | 6 +++++- .../app/core/components/Login/LoginPage.tsx | 2 +- public/app/features/admin/LicenseChrome.tsx | 1 - public/sass/pages/_login.scss | 19 ++++++------------- 4 files changed, 12 insertions(+), 16 deletions(-) diff --git a/public/app/core/components/Branding/Branding.tsx b/public/app/core/components/Branding/Branding.tsx index b892ac3319f..73cd15e3a36 100644 --- a/public/app/core/components/Branding/Branding.tsx +++ b/public/app/core/components/Branding/Branding.tsx @@ -7,9 +7,13 @@ export interface BrandComponentProps { } export const LoginLogo: FC = ({ className }) => { + const maxSize = css` + max-width: 150px; + `; + return ( <> - Grafana + Grafana
); diff --git a/public/app/core/components/Login/LoginPage.tsx b/public/app/core/components/Login/LoginPage.tsx index c565e0de1d7..d5faea93799 100644 --- a/public/app/core/components/Login/LoginPage.tsx +++ b/public/app/core/components/Login/LoginPage.tsx @@ -15,7 +15,7 @@ export const LoginPage: FC = () => {
- +
{({ diff --git a/public/app/features/admin/LicenseChrome.tsx b/public/app/features/admin/LicenseChrome.tsx index 3b0c87f8ec7..60f36cbb261 100644 --- a/public/app/features/admin/LicenseChrome.tsx +++ b/public/app/features/admin/LicenseChrome.tsx @@ -57,7 +57,6 @@ export const LicenseChrome: React.FC = ({ header, editionNotice, subheade }} >