Skip to content

Add a separate function button for the mermaid image #4546

@qdaxb

Description

@qdaxb

What specific problem does this solve?

The current mermaid image only has one function of opening by clicking, and it is not convenient to perform operations such as copying the image or copying the image code.

How should this be solved?

I added a toolbar for mermaid images to do some more complex operations on the image.

Currently, the functions of image scaling, image copying and code copying are implemented. In the future, I think the function of modifying the mermaid code in situ can be added to solve the problem that the model occasionally generates incorrect mermaid codes.

How will we know it works? (Acceptance Criteria)

When you point your mouse to the mermaid image, a toolbar will appear.

Estimated effort and complexity

Size estimate: Small

Technical considerations (optional but helpful)

No response

Trade-offs and risks (optional)

No response

Additional context (optional)

No response

Proposal checklist

  • I've searched existing Issues and Discussions for duplicates
  • This is a specific, actionable proposal with clear problem and solution
  • I've included concrete acceptance criteria
  • I understand this needs approval before implementation begins

Interested in implementing this?

  • Yes, I'd like to help implement this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or requestIssue - In ProgressSomeone is actively working on this. Should link to a PR soon.proposal

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions