Skip to content

mcp-data-platform-v1.40.3

Choose a tag to compare

@github-actions github-actions released this 12 Mar 18:45
· 43 commits to main since this release
a6ebb94

Fix: Blank Markdown Thumbnails

Markdown (and SVG) assets were producing blank/transparent thumbnail images due to the DomCapture component using visibility: hidden to hide its off-screen render container.

Root Cause

The html-to-image library (toPng) works by cloning the target DOM node and serializing it into an SVG foreignObject, preserving all computed styles — including visibility: hidden. The cloned content was therefore invisible, producing a blank PNG on every capture attempt.

Fix

Replaced visibility: hidden with left: -9999; top: -9999 off-screen positioning — the same pattern already used by IframeCapture for HTML/JSX assets. The element retains full layout (required for accurate capture) but is positioned outside the viewport.

Changed Files

  • ui/src/components/ThumbnailGenerator.tsxDomCapture container: removed visibility: hidden and zIndex: -1, switched to off-screen positioning