Skip to content

Commit

Permalink
minor: improve doc sidebar item (#916)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sachin-chaurasiya authored Oct 28, 2024
1 parent f064294 commit dfafb65
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/DocsSidebar/DocsSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Link from 'next/link'
import { NavItem, Doc, Category } from './types'
import docsSideNav from 'constants/docsSideNav'
import { usePathname } from 'next/navigation'
import { Tooltip } from '@nextui-org/react'

interface DocsSidebarProps {
onNavItemClick?: () => void
Expand Down Expand Up @@ -113,8 +114,10 @@ const DocsSidebar: React.FC<DocsSidebarProps> = ({ onNavItemClick }) => {
href={doc.route}
className={`line-clamp-2 flex w-full items-center gap-2 ${doc.className}`}
>
<FileText size={12} />
<div className="sidebar-label line-clamp-2 text-sm"> {doc.label} </div>
<FileText className="flex-none" size={12} />
<Tooltip content={doc.label}>
<div className="sidebar-label line-clamp-2 text-sm"> {doc.label} </div>
</Tooltip>
</Link>
</li>
)
Expand Down

0 comments on commit dfafb65

Please sign in to comment.