mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-02 16:09:08 +02:00
✨ Expand results (#815)
This commit is contained in:
parent
1c10fd6a53
commit
a9e41b2f0d
4 changed files with 216 additions and 143 deletions
|
@ -14,12 +14,13 @@ const TooltipTrigger = TooltipPrimitive.Trigger;
|
|||
const TooltipContent = React.forwardRef<
|
||||
React.ElementRef<typeof TooltipPrimitive.Content>,
|
||||
React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>
|
||||
>(({ className, sideOffset = 4, ...props }, ref) => (
|
||||
>(({ className, sideOffset = 4, side = "bottom", ...props }, ref) => (
|
||||
<TooltipPrimitive.Content
|
||||
ref={ref}
|
||||
sideOffset={sideOffset}
|
||||
side={side}
|
||||
className={cn(
|
||||
"bg-foreground text-background z-50 overflow-hidden rounded-md px-3 py-1.5 text-sm shadow-md",
|
||||
"z-50 overflow-hidden rounded-md bg-gray-700 px-2 py-1.5 text-sm text-gray-50 shadow-md",
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue