Skip to content

fix: overflow issue in sidebar #519

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/dashboard/sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,14 @@ export function SideBar({ className, publicId, companies }: SideBarProps) {
return (
<ScrollArea className="h-screen px-3">
<div className={cn("pb-12", className)}>
<div className="fixed gap-y-4 py-4">
<div className="fixed h-screen gap-y-4 py-4">
<div className="flex items-center px-1 py-2">
<CaptableLogo className="h-7 w-auto" />

<CompanySwitcher companies={companies} publicId={publicId} />
</div>

<div className="overflow-auto py-2">
<div className="overflow-auto h-full pt-2 pb-8">
<ul className="space-y-1">
{navigation.map((item) => {
const href = basePath + item.href;
Expand Down