@devries-cameron20 / composio Mirror · read-only / commits / 7f11f56d8
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

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

Synced Nov 22, 10:45 UTC

revert: remove scroll-to-top workaround

The scroll jump on provider pages is caused by fumadocs/Radix internals and needs a proper upstream fix rather than a global scroll override. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Sushmithamallesh committed Feb 3, 2026 at 19:54 UTC 7f11f56d89f71ba558025457c19a7f785c6a81e9
2 files changed -16
docs/app/layout.tsx
-2
@@ -5,7 +5,6 @@ import { Analytics } from '@vercel/analytics/next';
5 import './global.css';
6 import { IBM_Plex_Mono } from 'next/font/google';
7 import { PostHogProvider } from '@/components/posthog-provider';
8 -import { ScrollToTop } from '@/components/scroll-to-top';
8
9 export const metadata: Metadata = {
10 title: {
@@ -101,7 +100,6 @@ export default function Layout({ children }: LayoutProps<'/'>) {
100 },
101 }}
102 >
104 - <ScrollToTop />
103 {children}
104 </RootProvider>
105 </PostHogProvider>
docs/components/scroll-to-top.tsx deleted
-14
@@ -1,14 +0,0 @@
1 -'use client';
2 -
3 -import { usePathname } from 'next/navigation';
4 -import { useEffect } from 'react';
5 -
6 -export function ScrollToTop() {
7 - const pathname = usePathname();
8 -
9 - useEffect(() => {
10 - window.scrollTo(0, 0);
11 - }, [pathname]);
12 -
13 - return null;
14 -}