feat(cloud): add plan comparison and subscription management entry

This commit is contained in:
RockChinQ
2026-10-15 21:29:05 +08:00
parent 338b856eec
commit 978db1701b
16 changed files with 1636 additions and 22 deletions
+10 -2
View File
@@ -109,10 +109,13 @@ function TooltipTrigger({
function TooltipContent({
className,
arrowClassName,
sideOffset = 0,
children,
...props
}: React.ComponentProps<typeof TooltipPrimitive.Content>) {
}: React.ComponentProps<typeof TooltipPrimitive.Content> & {
arrowClassName?: string;
}) {
return (
<TooltipPrimitive.Portal>
<TooltipPrimitive.Content
@@ -125,7 +128,12 @@ function TooltipContent({
{...props}
>
{children}
<TooltipPrimitive.Arrow className="bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" />
<TooltipPrimitive.Arrow
className={cn(
'bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]',
arrowClassName,
)}
/>
</TooltipPrimitive.Content>
</TooltipPrimitive.Portal>
);