Skip to content

Conversation

Wadehl
Copy link

@Wadehl Wadehl commented Aug 6, 2025

Old:

image

New:

image image

Need Help:

Currently unable to render Mermaid diagrams directly within the MessageList due to virtual scrolling implementation. The virtual scrolling causes components to repeatedly unmount/mount during scroll operations, resulting in constant flickering and re-rendering of Mermaid SVGs. This approach with on-demand dialog rendering solves the performance issue, but if anyone has experience with stable Mermaid rendering in virtualized lists, feedback would be appreciated.

Issue Resolution

This change potentially provides a temporary workaround solution for Issue #249, which likely relates to Mermaid diagram rendering problems in the message interface

…m support

- Add MermaidRenderer component with fullscreen dialog viewer
- Integrate @panzoom/panzoom for smooth pan and zoom interactions
- Replace auto-rendering with on-demand code block buttons (copy + render)
- Add intelligent height fitting and vertical centering for optimal viewing
- Support copy feedback with visual indicators
- Add accessibility compliance with proper DialogTitle
- Maintain performance with caching and intersection observer optimization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant