mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-27 17:56:25 +02:00
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:
parent
79e552520a
commit
60d57305a7
3 changed files with 18 additions and 22 deletions
|
|
@ -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} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue