Meet Patel commited on
Commit
2209024
·
1 Parent(s): 6377651

Fix(sidebar): Prevent horizontal overflow in collapsed chats

Browse files
Files changed (1) hide show
  1. components/chat-sidebar.tsx +4 -1
components/chat-sidebar.tsx CHANGED
@@ -138,7 +138,10 @@ export function ChatSidebar() {
138
  )}>
139
  Chats
140
  </SidebarGroupLabel>
141
- <SidebarGroupContent className="overflow-y-auto pt-1">
 
 
 
142
  <SidebarMenu>
143
  {isLoading ? (
144
  <div className={`flex items-center justify-center py-4 ${isCollapsed ? "" : "px-4"}`}>
 
138
  )}>
139
  Chats
140
  </SidebarGroupLabel>
141
+ <SidebarGroupContent className={cn(
142
+ "overflow-y-auto pt-1",
143
+ isCollapsed ? "overflow-x-hidden" : ""
144
+ )}>
145
  <SidebarMenu>
146
  {isLoading ? (
147
  <div className={`flex items-center justify-center py-4 ${isCollapsed ? "" : "px-4"}`}>