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

Copilot Chat Profile selector CSS issues #1918

Open
NakosPTI opened this issue Feb 20, 2025 · 0 comments
Open

Copilot Chat Profile selector CSS issues #1918

NakosPTI opened this issue Feb 20, 2025 · 0 comments
Labels
bug Something isn't working frontend Pertains to the frontend. needs-triage

Comments

@NakosPTI
Copy link

Describe the bug
Copilot's agent selector CSS is broken.
On dark theme it has z-layer issues, and is hidden from view.
On light theme, it is shown that besides the previous issue, CSS is not applied to it.

Also, on both themes, the dropdown can shift the layout of other elements.

The cause of this might be that the chat profile selector dropdown is added to the main DOM instead of the the shadow-root.

To Reproduce
Based on chainlit/cookbook/copilot:
https://github.com/NakosPTI/chainlit-copilot-agent-select

Changes from chainlit/cookbook/copilot:

  • Changed port to 801 due to CORS issues.
  • Added light theme to the embed configuration.

Expected behavior
Chat profile selector should work the same as it does on the default chainlit frontend.

Screenshots

Image
Image

Desktop (please complete the following information):

  • OS: Windows 10 22H2
  • Browser
    • Firefox 135.0.1 x64
    • Edge 133.0.3065.69 x64
  • Python 3.11.9

Additional context
Issue was observed with chainlit 2.2.0 and 2.2.1.

@dosubot dosubot bot added bug Something isn't working frontend Pertains to the frontend. labels Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend Pertains to the frontend. needs-triage
Projects
None yet
Development

No branches or pull requests

1 participant