Commit a6ebb94
authored
fix: markdown thumbnail blank capture — replace visibility:hidden with off-screen positioning (#235)
html-to-image (toPng) clones the DOM node with computed styles intact,
so visibility:hidden produced a blank PNG. Use left:-9999 off-screen
positioning instead, matching the IframeCapture pattern.1 parent b5d01fa commit a6ebb94
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | | - | |
| 218 | + | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
225 | | - | |
226 | 224 | | |
227 | 225 | | |
228 | 226 | | |
| |||
0 commit comments