mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-09 15:25:32 -05:00
feat: improve stylization of code blocks #21
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @florencekl on GitHub (Nov 4, 2023).
Originally assigned to: @tjbck on GitHub.
Is your feature request related to a problem? Please describe.
Currently the Copy Code button below the code block can be unintuitive to find.
Describe the solution you'd like
ChatGPT Style code blocks, with the top left declaring the language and the top right having a copy code button.
Before Click:

After Click:

Additional context
This Feature would improve readability and usablity of the interaction in a ChatGPT Style UI (which is what most user are most likely already used to)
Here is a bare codepen mockup of how this could work (with hardcoded css styling because i was lazy and unsure what your current exact styling practices are):
Code
@tjbck commented on GitHub (Nov 5, 2023):
Hi, Just been implemented with #57! Thanks.