authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-09-11 12:04:43-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-11 12:04:43-07:00
log2b7d3a45e6ee9454e4dd46aaf0276ca05d8555d3
tree78b8de64a3641347dc4aa01b006fa781a8aa0a39
parent05d404210058d714cfef902517fc20ad66b82339
signature Signed by PGP key B5690EEEBB952194

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


1 files changed, 2 insertions(+), 4 deletions(-)

apps/web/src/components/ui/sidebar.tsx+2-4
...@@ -156,10 +156,8 @@ function SidebarProvider({...@@ -156,10 +156,8 @@ function SidebarProvider({
156 return (156 return (
157 <SidebarContext value={contextValue}>157 <SidebarContext value={contextValue}>
158 <div158 <div
159 className={cn(159 // Inset layouts opt into bg-sidebar through className.
160 "group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",160 className={cn("group/sidebar-wrapper flex min-h-svh w-full", className)}
161 className,
162 )}
163 data-sidebar-state={state}161 data-sidebar-state={state}
164 data-slot="sidebar-wrapper"162 data-slot="sidebar-wrapper"
165 style={163 style={