@devries-cameron20 / t3code Mirror · read-only / commits / 80ead5f3a7
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 24, 19:00 UTC

Add glass styling for thread tooltips and simplify preview tab handling (#4665)

Julius Marminge committed Jul 27, 2026 at 20:28 UTC 80ead5f3a7743010cdab6ad84fa4dcbd4c021038
2 files changed +8 -6
apps/web/src/components/SidebarV2.tsx
+2 -5
@@ -239,11 +239,8 @@ function SidebarV2ThreadTooltip({
239 side="right"
240 align="start"
241 sideOffset={8}
242 - className="dropdown-glass max-w-80 border-0! text-left whitespace-normal shadow-lg/10 before:hidden dark:shadow-none"
243 - style={{
244 - background:
245 - "color-mix(in srgb, var(--popover) 18%, color-mix(in srgb, var(--popover) var(--glass-opacity), transparent))",
246 - }}
242 + variant="glass"
243 + className="max-w-80 text-left whitespace-normal"
244 >
245 <div className="flex max-w-80 flex-col gap-2 p-2">
246 <div className="whitespace-nowrap text-sm font-medium text-foreground">{thread.title}</div>
apps/web/src/components/ui/tooltip.tsx
+6 -1
@@ -17,6 +17,7 @@ function TooltipPopup({
17 align = "center",
18 sideOffset = 4,
19 side = "top",
20 + variant = "default",
21 anchor,
22 children,
23 ...props
@@ -24,6 +25,7 @@ function TooltipPopup({
25 align?: TooltipPrimitive.Positioner.Props["align"];
26 side?: TooltipPrimitive.Positioner.Props["side"];
27 sideOffset?: TooltipPrimitive.Positioner.Props["sideOffset"];
28 + variant?: "default" | "glass";
29 anchor?: TooltipPrimitive.Positioner.Props["anchor"];
30 }) {
31 return (
@@ -38,7 +40,10 @@ function TooltipPopup({
40 >
41 <TooltipPrimitive.Popup
42 className={cn(
41 - "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%)]",
43 + "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%)]",
44 + variant === "glass"
45 + ? "dropdown-glass shadow-xl shadow-black/25 before:hidden"
46 + : "border bg-popover not-dark:bg-clip-padding shadow-md/5",
47 className,
48 )}
49 data-slot="tooltip-popup"