Skip to content

Commit

Permalink
Ensure chatbot background is consistent with other components (#8607)
Browse files Browse the repository at this point in the history
  • Loading branch information
pngwn authored Jun 25, 2024
1 parent fe83e64 commit c7cd0a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changeset/green-hounds-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@gradio/chatbot": minor
"gradio": minor
---

feat:Ensure chatbot background is consistent with other components
8 changes: 5 additions & 3 deletions js/chatbot/shared/ChatBot.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,15 @@
.bubble-wrap {
width: 100%;
overflow-y: auto;
background: var(--background-fill-secondary);
height: 100%;
padding-top: var(--spacing-xxl);
}
:global(.dark) .bubble-wrap {
background: var(--background-fill-secondary);
}
.message-wrap {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -469,7 +473,6 @@
/* Colors */
.bubble .bot {
border-color: var(--border-color-primary);
background: var(--background-fill-secondary);
}
.bubble .user {
Expand Down Expand Up @@ -522,7 +525,6 @@
.message-row.bubble.bot-row {
align-self: flex-start;
background: var(--background-fill-secondary);
width: calc(100% - var(--spacing-xl) * 6);
}
Expand Down

0 comments on commit c7cd0a0

Please sign in to comment.