Skip to content

Commit 6a961ad

Browse files
perf(web): avoid scanning chat history for sidebar backgrounds
1 parent 211618f commit 6a961ad

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎apps/web/src/components/ui/sidebar.tsx‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,8 @@ function SidebarProvider({
156156
return (
157157
<SidebarContext value={contextValue}>
158158
<div
159-
className={cn(
160-
"group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",
161-
className,
162-
)}
159+
// Inset layouts opt into bg-sidebar through className.
160+
className={cn("group/sidebar-wrapper flex min-h-svh w-full", className)}
163161
data-sidebar-state={state}
164162
data-slot="sidebar-wrapper"
165163
style={

0 commit comments

Comments
 (0)