An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
fix: place add attachment menu below trigger (#904)
Yoshiki Miura1ff3d4ef6379
diff --git a/components/chat-panel.tsx b/components/chat-panel.tsxindex 51be1e9e..efc8b7df 100644--- a/components/chat-panel.tsx+++ b/components/chat-panel.tsx@@ -863,12 +863,14 @@ export function ChatPanel({<Plus className="size-4" /></Button></TooltipTrigger>- <TooltipContent className="text-xs">Add</TooltipContent>+ <TooltipContent side="bottom" className="text-xs">+ Add+ </TooltipContent></Tooltip></TooltipProvider>{isAttachmentMenuOpen && (- <div className="absolute bottom-full left-0 z-50 mb-2 w-52 rounded-md border bg-popover p-1 text-popover-foreground shadow-md">+ <div className="absolute left-0 top-full z-50 mt-2 w-52 rounded-md border bg-popover p-1 text-popover-foreground shadow-md"><buttontype="button"className="flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-left text-sm hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none"