chatcraft.org icon indicating copy to clipboard operation
chatcraft.org copied to clipboard

Export as Image doesn't work in dark mode

Open menghif opened this issue 1 year ago • 2 comments

"Export as Image" doesn't include text when exported from dark mode:

image in light mode image in dark mode

menghif avatar Jun 08 '24 02:06 menghif

I think this is because in dark mode the body text is white and camouflages into the white background. I modified the text to red using my browser's dev tools and was able to get the text to appear: image

I haven't verified this, but I think the white text in the code blocks and rendered diagrams are unaffected by virtue of being in their own subcomponents.

rjwignar avatar Jun 08 '24 13:06 rjwignar

I might be wrong, but it seems the handler takes a screenshot of the message CardBody. I wonder if capturing the entire Card instead would fix this issue (so the text would be visible in its respective background)

rjwignar avatar Jun 08 '24 13:06 rjwignar