[GH-ISSUE #5767] FR: Floating copy button like the ChatGPT official website #68721

Closed
opened 2026-05-13 01:06:05 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @fangyuan99 on GitHub (Sep 27, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5767

Describe the solution you'd like
When generating long code, the copy code button will move with the code block generation and stay in the top right corner, so that you don't have to slide to the top to copy the code every time.

Here's how it's implemented on the ChatGPT official website: https://chatgpt.com
image
image

Originally created by @fangyuan99 on GitHub (Sep 27, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/5767 **Describe the solution you'd like** When generating long code, the copy code button will move with the code block generation and stay in the top right corner, so that you don't have to slide to the top to copy the code every time. Here's how it's implemented on the ChatGPT official website: https://chatgpt.com ![image](https://github.com/user-attachments/assets/c8355f47-b5ff-4794-9ab0-10818327168e) ![image](https://github.com/user-attachments/assets/abc22178-f565-4387-bd1b-bbe8fdf9ca7d)
Author
Owner

@silentoplayz commented on GitHub (Sep 30, 2024):

Good suggestion! Perhaps the Run button for running code blocks within the chat could also float. And it wouldn't hurt to give the two options (Run & Copy Code) slightly more spacing between the buttons + an icon before the text label within each button for better visuals. Just my two cents being thrown into OP's feature request, as it would be a few QOL adjustments that I can hop on board with.

<!-- gh-comment-id:2381938906 --> @silentoplayz commented on GitHub (Sep 30, 2024): Good suggestion! Perhaps the `Run` button for running code blocks within the chat could also float. And it wouldn't hurt to give the two options (`Run` & `Copy Code`) slightly more spacing between the buttons + an icon before the text label within each button for better visuals. Just my two cents being thrown into OP's feature request, as it would be a few QOL adjustments that I can hop on board with.
Author
Owner

@tjbck commented on GitHub (Oct 6, 2024):

Added to dev!

<!-- gh-comment-id:2395280482 --> @tjbck commented on GitHub (Oct 6, 2024): Added to dev!
Author
Owner

@Svyable commented on GitHub (Dec 29, 2025):

broken again

<!-- gh-comment-id:3695313491 --> @Svyable commented on GitHub (Dec 29, 2025): broken again
Author
Owner

@silentoplayz commented on GitHub (Dec 29, 2025):

broken again

What exactly is "broken again"?
Just like attention, context is also everything.

<!-- gh-comment-id:3697624873 --> @silentoplayz commented on GitHub (Dec 29, 2025): > broken again What exactly is "broken again"? Just like attention, context is also everything.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#68721