Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Light / Dark theme does not auto-update without a page refresh #2028

Closed
1 task done
acerspyro opened this issue Mar 8, 2024 · 1 comment · Fixed by #2037
Closed
1 task done

[Bug]: Light / Dark theme does not auto-update without a page refresh #2028

acerspyro opened this issue Mar 8, 2024 · 1 comment · Fixed by #2037
Assignees
Labels
bug Something isn't working

Comments

@acerspyro
Copy link
Sponsor

What happened?

When the theme is set to "System", it doesn't automatically update when the system theme changes from light to dark, and vice versa, until the user refreshes.

The media query value for the preferred theme should be watched to update on the fly.

Steps to Reproduce

  1. Open LibreChat
  2. Set the theme to "System"
  3. Change the system theme

What browsers are you seeing the problem on?

No response

Relevant log output

No response

Screenshots

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@acerspyro acerspyro added the bug Something isn't working label Mar 8, 2024
@berry-13 berry-13 self-assigned this Mar 9, 2024
@acerspyro
Copy link
Sponsor Author

acerspyro commented Mar 10, 2024

You are machines, @berry-13, @danny-avila, thank you!

I can confirm that the fix works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants