Skip to content

Commit

Permalink
Some more chatbot fixes (#9593)
Browse files Browse the repository at this point in the history
* some fixes

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
  • Loading branch information
dawoodkhan82 and gradio-pr-bot authored Oct 8, 2024
1 parent 477f45c commit cc61fe7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .changeset/quiet-gifts-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@gradio/chatbot": minor
"@gradio/multimodaltextbox": minor
"gradio": minor
---

feat:Some more chatbot fixes
5 changes: 0 additions & 5 deletions js/chatbot/shared/ChatBot.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -511,11 +511,6 @@
overflow-wrap: break-word;
}
.message-wrap > :global(.message :not(.image-button) img) {
margin: var(--size-2);
max-height: 200px;
}
.message-wrap :global(.message-row .md img) {
border-radius: var(--radius-xl);
margin: var(--size-2);
Expand Down
5 changes: 5 additions & 0 deletions js/chatbot/shared/Message.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@
border: none;
}
.message-row :global(img) {
margin: var(--size-2);
max-height: 300px;
}
.file-pil {
display: block;
width: fit-content;
Expand Down
2 changes: 1 addition & 1 deletion js/multimodaltextbox/shared/MultimodalTextbox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
$: if (value === null) value = { text: "", files: [] };
$: value, el && lines !== max_lines && resize(el, lines, max_lines);
$: can_submit = value.text !== "";
$: can_submit = value.text !== "" || value.files.length > 0;
const dispatch = createEventDispatcher<{
change: typeof value;
Expand Down

0 comments on commit cc61fe7

Please sign in to comment.