mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 09:20:15 +01:00
🎂 fix: birthday icon (#2950)
* fix: tooltip and birthday icon * chore: update conditional render --------- Co-authored-by: Danny Avila <danny@librechat.ai>
This commit is contained in:
parent
37ae484fbc
commit
9f0c1914a5
2 changed files with 11 additions and 9 deletions
|
|
@ -55,15 +55,17 @@ export default function Landing({ Header }: { Header?: ReactNode }) {
|
||||||
className="h-2/3 w-2/3"
|
className="h-2/3 w-2/3"
|
||||||
size={41}
|
size={41}
|
||||||
/>
|
/>
|
||||||
|
{!!startupConfig?.showBirthdayIcon && (
|
||||||
|
<div>
|
||||||
<TooltipTrigger>
|
<TooltipTrigger>
|
||||||
{(startupConfig?.showBirthdayIcon ?? false) && (
|
<BirthdayIcon className="absolute bottom-8 right-2.5" />
|
||||||
<BirthdayIcon className="absolute bottom-12 right-5" />
|
|
||||||
)}
|
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
<TooltipContent side="top" sideOffset={115} className="left-[20%]">
|
<TooltipContent side="top" sideOffset={110} className="">
|
||||||
{localize('com_ui_happy_birthday')}
|
{localize('com_ui_happy_birthday')}
|
||||||
</TooltipContent>
|
</TooltipContent>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
{assistantName ? (
|
{assistantName ? (
|
||||||
<div className="flex flex-col items-center gap-0 p-2">
|
<div className="flex flex-col items-center gap-0 p-2">
|
||||||
<div className="text-center text-2xl font-medium dark:text-white">
|
<div className="text-center text-2xl font-medium dark:text-white">
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ export default function BirthdayIcon({ className = '' }) {
|
||||||
viewBox="0 0 233.33 290"
|
viewBox="0 0 233.33 290"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
xmlnsXlink="http://www.w3.org/1999/xlink"
|
xmlnsXlink="http://www.w3.org/1999/xlink"
|
||||||
className={cn('h-14 w-14', className)}
|
className={cn('h-11 w-11', className)}
|
||||||
>
|
>
|
||||||
<defs>
|
<defs>
|
||||||
<linearGradient
|
<linearGradient
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue