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:
Hannah 2023-11-07 20:26:06 +01:00 committed by GitHub
parent 19af2806a5
commit 4b1011bab0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,6 @@
---
"@gradio/chatbot": patch
"gradio": patch
---
fix:Maintain text selection in `Chatbot` button elements

View File

@ -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)}