An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
Fix: Resolve hydration mismatch in SidebarMenuSkeleton by using fixed width
Yoshiki Miura535e919fb819
diff --git a/components/ui/sidebar.tsx b/components/ui/sidebar.tsxindex fb8647ad..8b82675f 100644--- a/components/ui/sidebar.tsx+++ b/components/ui/sidebar.tsx@@ -659,9 +659,7 @@ const SidebarMenuSkeleton = React.forwardRef<}>(({ className, showIcon = false, ...props }, ref) => {// Random width between 50 to 90%.- const width = React.useMemo(() => {- return `${Math.floor(Math.random() * 40) + 50}%`- }, [])+ const width = '75%' // Use a fixed widthreturn (<div