Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
Add glass styling for thread tooltips and simplify preview tab handling (#4665)
Julius Marminge80ead5f3a774
diff --git a/apps/web/src/components/SidebarV2.tsx b/apps/web/src/components/SidebarV2.tsxindex a5f9eca5f..8677ee114 100644--- a/apps/web/src/components/SidebarV2.tsx+++ b/apps/web/src/components/SidebarV2.tsx@@ -239,11 +239,8 @@ function SidebarV2ThreadTooltip({side="right"align="start"sideOffset={8}- className="dropdown-glass max-w-80 border-0! text-left whitespace-normal shadow-lg/10 before:hidden dark:shadow-none"- style={{- background:- "color-mix(in srgb, var(--popover) 18%, color-mix(in srgb, var(--popover) var(--glass-opacity), transparent))",- }}+ variant="glass"+ className="max-w-80 text-left whitespace-normal"><div className="flex max-w-80 flex-col gap-2 p-2"><div className="whitespace-nowrap text-sm font-medium text-foreground">{thread.title}</div>diff --git a/apps/web/src/components/ui/tooltip.tsx b/apps/web/src/components/ui/tooltip.tsxindex 442c394ec..23c4a370e 100644--- a/apps/web/src/components/ui/tooltip.tsx+++ b/apps/web/src/components/ui/tooltip.tsx@@ -17,6 +17,7 @@ function TooltipPopup({align = "center",sideOffset = 4,side = "top",+ variant = "default",anchor,children,...props@@ -24,6 +25,7 @@ function TooltipPopup({align?: TooltipPrimitive.Positioner.Props["align"];side?: TooltipPrimitive.Positioner.Props["side"];sideOffset?: TooltipPrimitive.Positioner.Props["sideOffset"];+ variant?: "default" | "glass";anchor?: TooltipPrimitive.Positioner.Props["anchor"];}) {return (@@ -38,7 +40,10 @@ function TooltipPopup({><TooltipPrimitive.PopupclassName={cn(- "relative flex h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) text-balance rounded-md border bg-popover not-dark:bg-clip-padding text-popover-foreground text-xs shadow-md/5 transition-[width,height,scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 data-instant:duration-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",+ "relative flex h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) text-balance rounded-md text-popover-foreground text-xs transition-[width,height,scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 data-instant:duration-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",+ variant === "glass"+ ? "dropdown-glass shadow-xl shadow-black/25 before:hidden"+ : "border bg-popover not-dark:bg-clip-padding shadow-md/5",className,)}data-slot="tooltip-popup"