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(portal): make markdown preview scrollable in LocalFile portal (#14919)

Arvin Xu62187d55c5c2
diff --git a/src/features/Portal/LocalFile/Body.tsx b/src/features/Portal/LocalFile/Body.tsx
index dd569c9ae44..5eacec4936c 100644
--- a/src/features/Portal/LocalFile/Body.tsx
+++ b/src/features/Portal/LocalFile/Body.tsx
@@ -235,7 +235,7 @@ const TextPreviewPane = memo<TextPreviewPaneProps>(
<span style={{ fontSize: 12, opacity: 0.65 }}>{truncatedLabel}</span>
</Center>
)}
- <Flexbox flex={1} style={{ minHeight: 0, overflow: 'auto' }}>
+ <div style={{ flex: 1, minHeight: 0, overflow: 'auto' }}>
{isMarkdown && mode === 'render' ? (
<>
<SkillFrontmatterPreviewCard metadata={frontmatterMetadata} />
@@ -249,7 +249,7 @@ const TextPreviewPane = memo<TextPreviewPaneProps>(
{content}
</Highlighter>
)}
- </Flexbox>
+ </div>
</Flexbox>
);
},