mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-13 19:20:04 +00:00
🐛 fix(portal): make markdown preview scrollable in LocalFile portal (#14919)
This commit is contained in:
@@ -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>
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user