fix: contain custom logo instead of cover and crop

This commit is contained in:
Daniel Lautzenheiser 2023-06-13 11:23:33 -04:00
parent 971720044b
commit 0c592f6943
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ const Login = ({
<div className="flex flex-col h-screen items-center justify-center bg-slate-50 dark:bg-slate-900">
{config?.logo_url ? (
<div
className="h-40 w-80 mb-4 bg-cover bg-no-repeat bg-center object-cover"
className="h-40 w-80 mb-4 bg-contain bg-no-repeat bg-center object-cover"
style={{ backgroundImage: `url('${config.logo_url}')` }}
/>
) : (

View File

@ -57,7 +57,7 @@ const Navbar = ({
<div className="flex flex-shrink-0 items-center justify-center bg-slate-500 dark:bg-slate-700 w-16">
{config?.logo_url ? (
<div
className="inline-flex h-10 w-10 bg-cover bg-no-repeat bg-center object-cover"
className="inline-flex h-10 w-10 bg-contain bg-no-repeat bg-center object-cover"
style={{ backgroundImage: `url('${config.logo_url}')` }}
/>
) : (