mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-21 01:01:05 +08:00
Maintain text selection in Chatbot
button elements (#6316)
* add user-select to button * add changeset * formatting --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
19af2806a5
commit
4b1011bab0
6
.changeset/all-trams-glow.md
Normal file
6
.changeset/all-trams-glow.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"@gradio/chatbot": patch
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
fix:Maintain text selection in `Chatbot` button elements
|
@ -158,6 +158,7 @@
|
||||
data-testid={j == 0 ? "user" : "bot"}
|
||||
class:latest={i === value.length - 1}
|
||||
class:message-markdown-disabled={!render_markdown}
|
||||
style:user-select="text"
|
||||
class:selectable
|
||||
style:text-align="left"
|
||||
on:click={() => handle_select(i, j, message)}
|
||||
|
Loading…
Reference in New Issue
Block a user