mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30: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,14 +55,16 @@ export default function Landing({ Header }: { Header?: ReactNode }) {
|
|||
className="h-2/3 w-2/3"
|
||||
size={41}
|
||||
/>
|
||||
<TooltipTrigger>
|
||||
{(startupConfig?.showBirthdayIcon ?? false) && (
|
||||
<BirthdayIcon className="absolute bottom-12 right-5" />
|
||||
)}
|
||||
</TooltipTrigger>
|
||||
<TooltipContent side="top" sideOffset={115} className="left-[20%]">
|
||||
{localize('com_ui_happy_birthday')}
|
||||
</TooltipContent>
|
||||
{!!startupConfig?.showBirthdayIcon && (
|
||||
<div>
|
||||
<TooltipTrigger>
|
||||
<BirthdayIcon className="absolute bottom-8 right-2.5" />
|
||||
</TooltipTrigger>
|
||||
<TooltipContent side="top" sideOffset={110} className="">
|
||||
{localize('com_ui_happy_birthday')}
|
||||
</TooltipContent>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{assistantName ? (
|
||||
<div className="flex flex-col items-center gap-0 p-2">
|
||||
|
|
|
|||
|
|
@ -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)}
|
||||
>
|
||||
<defs>
|
||||
<linearGradient
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue