From f96bb026d921a0a7e3906b51b5755aef1200534e Mon Sep 17 00:00:00 2001 From: Daniel Lautzenheiser Date: Tue, 9 May 2023 17:58:40 -0400 Subject: [PATCH] fix: styles for custom logo and use custom logo in top nav bar (#789) --- packages/core/dev-test/backends/gitlab/config.yml | 1 + packages/core/src/components/login/Login.tsx | 9 ++++++++- packages/core/src/components/navbar/Navbar.tsx | 12 ++++++++++-- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/packages/core/dev-test/backends/gitlab/config.yml b/packages/core/dev-test/backends/gitlab/config.yml index d02874f2..cf6a72c5 100644 --- a/packages/core/dev-test/backends/gitlab/config.yml +++ b/packages/core/dev-test/backends/gitlab/config.yml @@ -7,6 +7,7 @@ backend: media_folder: assets/upload public_folder: /assets/upload +logo_url: http://localhost:8080/assets/uploads/lobby.jpg media_library: max_file_size: 100000000 collections: diff --git a/packages/core/src/components/login/Login.tsx b/packages/core/src/components/login/Login.tsx index af1425a2..ab66e7bc 100644 --- a/packages/core/src/components/login/Login.tsx +++ b/packages/core/src/components/login/Login.tsx @@ -32,7 +32,14 @@ const Login = ({ return (
- {config?.logo_url ? : } + {config?.logo_url ? ( +
+ ) : ( + + )} {error ? (
) => { const dispatch = useAppDispatch(); + const config = useAppSelector(selectConfig); const displayUrl = useAppSelector(selectDisplayUrl); @@ -45,7 +46,14 @@ const Navbar = ({
- + {config?.logo_url ? ( +
+ ) : ( + + )}
{breadcrumbs.map((breadcrumb, index) =>