An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
fix: Position Beta badge at bottom-right, hide when changelog is visible
Yoshiki Miura2c38cf862dab
diff --git a/components/beta-badge.tsx b/components/beta-badge.tsxindex 71686f65..a5d0d9f7 100644--- a/components/beta-badge.tsx+++ b/components/beta-badge.tsx@@ -1,10 +1,17 @@'use client'+import { useChangelog } from '@/hooks/use-changelog'+import { Badge } from '@/components/ui/badge'export function BetaBadge() {+ const { isVisible } = useChangelog()++ // Don't show if changelog is visible+ if (isVisible) return null+return (- <div className="fixed bottom-4 left-1/2 -translate-x-1/2 z-40">+ <div className="fixed bottom-4 right-4 z-40 animate-in slide-in-from-bottom-5 duration-300"><Badge variant="secondary" className="px-3 py-1 text-xs font-semibold">BETA</Badge>