refactor: streamline sidebar layout and adjust note/chat limits

- Updated `AppSidebar` to simplify the layout by removing unnecessary div wrappers around `NavChats` and `NavNotes`.
- Adjusted the number of notes and chats displayed in the sidebar from 5 to 4 for a more compact design.
- Modified `SidebarContent` and `SidebarGroup` styles for improved spacing and layout consistency.
This commit is contained in:
Anish Sarkar 2025-12-19 19:36:10 +05:30
parent 79e552520a
commit 60d57305a7
3 changed files with 18 additions and 22 deletions

View file

@ -443,24 +443,20 @@ export const AppSidebar = memo(function AppSidebar({
</SidebarMenu>
</SidebarHeader>
<SidebarContent className="space-y-6">
<NavMain items={processedNavMain} />
<SidebarContent className="gap-1">
<NavMain items={processedNavMain} />
<div className="space-y-2">
<NavChats
chats={processedRecentChats}
searchSpaceId={searchSpaceId}
/>
</div>
<NavChats
chats={processedRecentChats}
searchSpaceId={searchSpaceId}
/>
<div className="space-y-2">
<NavNotes
notes={processedRecentNotes}
onAddNote={onAddNote}
searchSpaceId={searchSpaceId}
/>
</div>
</SidebarContent>
<NavNotes
notes={processedRecentNotes}
onAddNote={onAddNote}
searchSpaceId={searchSpaceId}
/>
</SidebarContent>
<SidebarFooter>
{pageUsage && (
<PageUsageDisplay pagesUsed={pageUsage.pagesUsed} pagesLimit={pageUsage.pagesLimit} />