Skip to content

(Bug report) Mermaid diagrams rendered out of viewport #5203

@daneos

Description

@daneos

TriliumNext Version

0.90.4

What operating system are you using?

Other Linux

What is your setup?

Local + server sync

Operating System Version

Linux Mint 21.1 Cinnamon

Description

Big mermaid diagrams are being rendered "below" the viewport, which makes it necessary to use the arrows to scroll down and bring the diagram up on every change. In the maximized window on screenshot below you can just see the top of the diagram, but if the window size is smaller the diagram is completely invisible.
Skärmbild från 2024-10-10 11-41-05
I suppose the expected behaviour would be to render the diagram centered in the viewport, more or less like this:
Skärmbild från 2024-10-10 11-29-45

Error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions