YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(ui): prevent tooltips from being cut off at window edges
Louis Beaumontae30eb5062cc
diff --git a/screenpipe-app-tauri/components/ui/tooltip.tsx b/screenpipe-app-tauri/components/ui/tooltip.tsxindex 30fc44d90..8b0d82160 100644--- a/screenpipe-app-tauri/components/ui/tooltip.tsx+++ b/screenpipe-app-tauri/components/ui/tooltip.tsx@@ -14,12 +14,13 @@ const TooltipTrigger = TooltipPrimitive.Triggerconst TooltipContent = React.forwardRef<React.ElementRef<typeof TooltipPrimitive.Content>,React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>->(({ className, sideOffset = 4, ...props }, ref) => (+>(({ className, sideOffset = 4, collisionPadding = 16, ...props }, ref) => (<TooltipPrimitive.Contentref={ref}sideOffset={sideOffset}+ collisionPadding={collisionPadding}className={cn(- "z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ "z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 max-w-[min(calc(100vw-32px),320px)]",className)}{...props}