Skip to content

fix(ui): ExportMenu PNG export creates a blank canvas — target element is never rendered into bitmap #412

@github-actions

Description

@github-actions

Summary

The PNG export path in ExportMenu.tsx creates a fresh <canvas> and draws only a background colour and header text. targetRef.current (the actual dashboard element) is never rendered into the canvas. Downloaded PNGs contain only the background and title, missing all dashboard content.

Affected file

src/UILayer/web/src/components/shared/ExportMenu.tsx — line 83

Required fix

Use a library such as html2canvas or dom-to-image to capture the targetRef.current DOM node into the canvas, rather than drawing a blank canvas manually.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions