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

fix: theme bug, add client_theme #65

Merged
merged 2 commits into from
Mar 29, 2024
Merged

fix: theme bug, add client_theme #65

merged 2 commits into from
Mar 29, 2024

Conversation

Vsion
Copy link
Collaborator

@Vsion Vsion commented Mar 29, 2024

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • 💄 style
  • 🔨 chore
  • 📝 docs

🔀 变更说明 | Description of Change

  1. ssr 的环境中,无法直接判断客户端是否处于暗色模式(prefers-color-scheme: dark), 无法访问 window 或 document

并且目前使用的是 css-in-js 方案处理样式, 无法使用媒体查询处理
故采取折中方案: 存储 client_theme ( dark | light ), 初次访问页面时, 如果当前为跟随系统, 且系统主题(dark|light)与当前项目(light|dark)不一致时, 会闪烁一次, 后续再次刷新不会出现此问题

  1. use chat item icon
    image

📝 补充信息 | Additional Information

fixed: #59, fixed: kubeagi/ops-console#282

@yunti-bot
Copy link

👍 @Vsion


Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

@Carrotzpc Carrotzpc merged commit 82671aa into kubeagi:main Mar 29, 2024
3 checks passed
@yunti-bot
Copy link

❤️ Great PR @Vsion ❤️


The growth of project is inseparable from user feedback and contribution, thanks for your contribution!
项目的成长离不开用户反馈和贡献,感谢您的贡献!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] UI Bug GPTs 平台对话记录需要支持展示智能体
3 participants