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 document scrolling (#18345)

Arvin Xuedfe5e3b6c83
diff --git a/src/features/ResourceManager/components/Editor/index.tsx b/src/features/ResourceManager/components/Editor/index.tsx
index 9f2b332e77f..36e6a4f1a62 100644
--- a/src/features/ResourceManager/components/Editor/index.tsx
+++ b/src/features/ResourceManager/components/Editor/index.tsx
@@ -72,8 +72,8 @@ const FileEditorCanvas = memo<FileEditorProps>(({ onBack }) => {
const fileDetail = fromStore ?? fromFetch;
return (
- <Flexbox horizontal height={'100%'} width={'100%'}>
- <Flexbox flex={1} height={'100%'}>
+ <Flexbox horizontal height={'100%'} style={{ minHeight: 0 }} width={'100%'}>
+ <Flexbox flex={1} height={'100%'} style={{ minHeight: 0 }}>
<NavHeader
left={
<Flexbox
@@ -121,7 +121,7 @@ const FileEditorCanvas = memo<FileEditorProps>(({ onBack }) => {
left: { flex: 1, minWidth: 0, overflow: 'hidden', padding: 0 },
}}
/>
- <Flexbox flex={1} style={{ overflow: 'hidden' }}>
+ <Flexbox flex={1} style={{ minHeight: 0, overflow: 'hidden' }}>
<FileContent fileId={currentViewItemId} />
</Flexbox>
</Flexbox>