From 9f0c1914a512d366dba24c827dddacf4c4093a85 Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Tue, 4 Jun 2024 14:55:41 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=82=20fix:=20birthday=20icon=20(#2950)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: tooltip and birthday icon * chore: update conditional render --------- Co-authored-by: Danny Avila --- client/src/components/Chat/Landing.tsx | 18 ++++++++++-------- client/src/components/svg/BirthdayIcon.tsx | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/client/src/components/Chat/Landing.tsx b/client/src/components/Chat/Landing.tsx index 2202a28adf..06386c112a 100644 --- a/client/src/components/Chat/Landing.tsx +++ b/client/src/components/Chat/Landing.tsx @@ -55,14 +55,16 @@ export default function Landing({ Header }: { Header?: ReactNode }) { className="h-2/3 w-2/3" size={41} /> - - {(startupConfig?.showBirthdayIcon ?? false) && ( - - )} - - - {localize('com_ui_happy_birthday')} - + {!!startupConfig?.showBirthdayIcon && ( +
+ + + + + {localize('com_ui_happy_birthday')} + +
+ )} {assistantName ? (
diff --git a/client/src/components/svg/BirthdayIcon.tsx b/client/src/components/svg/BirthdayIcon.tsx index 617d186f9d..fb7ab029b8 100644 --- a/client/src/components/svg/BirthdayIcon.tsx +++ b/client/src/components/svg/BirthdayIcon.tsx @@ -8,7 +8,7 @@ export default function BirthdayIcon({ className = '' }) { viewBox="0 0 233.33 290" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" - className={cn('h-14 w-14', className)} + className={cn('h-11 w-11', className)} >