mcp-data-platform-v1.40.3
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.tsx—DomCapturecontainer: removedvisibility: hiddenandzIndex: -1, switched to off-screen positioning