From 8c5a252f1196451a7d26d86fa9532764c84cdc2a Mon Sep 17 00:00:00 2001 From: animesh sahoo Date: Tue, 8 Jul 2025 22:28:02 +0530 Subject: [PATCH 1/3] hidden scrollbar --- components/Sidebar.tsx | 3 ++- pages/tools/components/ui/DropdownMenu.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx index f034a1849..fe0a551dd 100644 --- a/components/Sidebar.tsx +++ b/components/Sidebar.tsx @@ -675,7 +675,8 @@ export const DocsNav = ({ 'ml-6 transition-all duration-500 ease-in-out', { 'max-h-0 opacity-0 overflow-hidden': !active.getReference, - 'max-h-80 overflow-y-auto opacity-100': active.getReference, + 'max-h-80 overflow-y-auto scrollbar-hidden opacity-100': + active.getReference, }, )} id='reference' diff --git a/pages/tools/components/ui/DropdownMenu.tsx b/pages/tools/components/ui/DropdownMenu.tsx index 3b7ba470b..0cddcf999 100644 --- a/pages/tools/components/ui/DropdownMenu.tsx +++ b/pages/tools/components/ui/DropdownMenu.tsx @@ -78,7 +78,7 @@ export default function DropdownMenu({ -
+
{children}
From a85ec9d576889f3ace12e821c98fdeab0d1f2c42 Mon Sep 17 00:00:00 2001 From: animesh sahoo Date: Sat, 2 Aug 2025 16:20:07 +0530 Subject: [PATCH 2/3] resolved conflict --- components/Sidebar.tsx | 1012 ++++++++++++++++++++-------------------- 1 file changed, 500 insertions(+), 512 deletions(-) diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx index fe0a551dd..b687a77af 100644 --- a/components/Sidebar.tsx +++ b/components/Sidebar.tsx @@ -1,15 +1,22 @@ +/* eslint-disable linebreak-style */ +/* istanbul ignore file */ import { getLayout as getSiteLayout } from './SiteLayout'; import React, { useEffect, useState } from 'react'; import { useRouter } from 'next/router'; import Link from 'next/link'; import { HOST } from '~/lib/config'; import classnames from 'classnames'; -import { SegmentHeadline } from './Layout'; import extractPathWithoutFragment from '~/lib/extractPathWithoutFragment'; import CarbonAds from './CarbonsAds'; import { useTheme } from 'next-themes'; import ExternalLinkIcon from '../public/icons/external-link-black.svg'; import Image from 'next/image'; +import { + Collapsible, + CollapsibleContent, + CollapsibleTrigger, +} from './ui/collapsible'; +import { Button } from './ui/button'; const DocLink = ({ uri, @@ -32,7 +39,7 @@ const DocLink = ({ { - setActive({ - getDocs: !active.getDocs, - getStarted: false, - getReference: false, - getSpecification: false, - getGuides: false, - }); - }; - - const handleClickGet = () => { - setActive({ - getDocs: false, - getStarted: !active.getStarted, - getReference: false, - getSpecification: false, - getGuides: false, - }); - }; - - const handleClickReference = () => { - setActive({ - getDocs: false, - getStarted: false, - getReference: !active.getReference, - getSpecification: false, - getGuides: false, - }); - }; - - const handleClickGuides = () => { - setActive({ - getDocs: false, - getStarted: false, - getGuides: !active.getGuides, - getReference: false, - getSpecification: false, - }); - }; - - const handleClickSpec = () => { - setActive({ - getDocs: false, - getStarted: false, - getGuides: false, - getReference: false, - getSpecification: !active.getSpecification, - }); - }; - - const rotate = active.getDocs ? 'rotate(180deg)' : 'rotate(0)'; - const rotateG = active.getStarted ? 'rotate(180deg)' : 'rotate(0)'; - const rotateR = active.getReference ? 'rotate(180deg)' : 'rotate(0)'; - const rotateSpec = active.getSpecification ? 'rotate(180deg)' : 'rotate(0)'; const { resolvedTheme } = useTheme(); const [learn_icon, setLearn_icon] = useState(''); const [reference_icon, setReference_icon] = useState(''); @@ -389,528 +342,563 @@ export const DocsNav = ({ return (