Skip to content
TypeScript

perf(web): avoid scanning chat history for sidebar backgrounds (#11206)

Julius Marminge2b7d3a45e6ee
diff --git a/apps/web/src/components/ui/sidebar.tsx b/apps/web/src/components/ui/sidebar.tsx
index 425db645736..88162b41d82 100644
--- a/apps/web/src/components/ui/sidebar.tsx
+++ b/apps/web/src/components/ui/sidebar.tsx
@@ -156,10 +156,8 @@ function SidebarProvider({
return (
<SidebarContext value={contextValue}>
<div
- className={cn(
- "group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",
- className,
- )}
+ // Inset layouts opt into bg-sidebar through className.
+ className={cn("group/sidebar-wrapper flex min-h-svh w-full", className)}
data-sidebar-state={state}
data-slot="sidebar-wrapper"
style={