LibreChat icon indicating copy to clipboard operation
LibreChat copied to clipboard

fix: coping text from dark mode shouldn't keep the colors

Open adoxentor opened this issue 5 months ago • 0 comments

Summary

When copying text from an answer in dark mode, the copied content retains the dark mode styling (light text on dark background) when pasted into other applications like Google Docs. This is unlike other writing assistance platforms, such as ChatGPT, which have implemented a fix for this issue. This fix registers a copy event listener that removes the styling from the text. Fixes: #3954

Change Type

Please delete any irrelevant options.

  • [x] Bug fix

Testing

Just copy a message from the bot that has formatting into Google Docs.

Test Configuration:

Checklist

Please delete any irrelevant options.

  • [x] My code adheres to this project's style guidelines
  • [x] I have performed a self-review of my own code
  • [x] I have commented in any complex areas of my code
  • [x] My changes do not introduce new warnings

adoxentor avatar Sep 09 '24 12:09 adoxentor