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

Prevent button duplication in chat Interface #173

Closed
Naseem77 opened this issue Nov 10, 2024 · 0 comments · Fixed by #188
Closed

Prevent button duplication in chat Interface #173

Naseem77 opened this issue Nov 10, 2024 · 0 comments · Fixed by #188
Assignees
Labels
enhancement New feature or request

Comments

@Naseem77
Copy link
Contributor

Title: Prevent button duplication in chat interface

Problem:

Every time the lucide lightbulb button is clicked, a new div with three buttons is added to the chat, causing duplication of button sets. This results in unnecessary clutter in the chat interface.

Suggested Solution:

When the lightbulb button is clicked, check the visibility of the button set:

If the button set is visible, move it to the end of the chat.
If the button set is not visible, add it to the end of the chat.

Expected Outcome:

  • The button set will be toggled on and off without duplication.
  • Buttons will always appear last in the chat when the lamp button is clicked.

Image

@Naseem77 Naseem77 self-assigned this Nov 10, 2024
@Naseem77 Naseem77 added the enhancement New feature or request label Nov 10, 2024
@Naseem77 Naseem77 assigned Anchel123 and unassigned Naseem77 Nov 11, 2024
@Anchel123 Anchel123 linked a pull request Nov 18, 2024 that will close this issue
@Naseem77 Naseem77 closed this as completed Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants