🐛 fix(portal): make markdown preview scrollable in LocalFile portal (#14919)

This commit is contained in:
Arvin Xu
2026-05-19 10:11:51 +08:00
committed by GitHub
parent c68eb07a91
commit 62187d55c5
+2 -2
View File
@@ -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>
);
},