Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix: restore resource sidebar virtual list height (#19520)

Rdmclin2e680175c2beb
diff --git a/src/features/NavPanel/SideBarLayout.tsx b/src/features/NavPanel/SideBarLayout.tsx
index 130a514cc54..7f7c55e6548 100644
--- a/src/features/NavPanel/SideBarLayout.tsx
+++ b/src/features/NavPanel/SideBarLayout.tsx
@@ -38,6 +38,8 @@ const SideBarLayout = memo<SidebarLayoutProps>(({ header, body }) => {
<ScrollArea
disableContentFit
scrollFade
+ // Preserve the height chain for sidebar bodies containing virtual lists.
+ contentProps={{ style: { height: '100%' } }}
style={{ flex: 1, minHeight: 0 }}
viewportProps={{ onScroll: handleScroll, ref: scrollerRef }}
>