Skip to content

Commit c7cd0a0

Browse files
authored
Ensure chatbot background is consistent with other components (#8607)
1 parent fe83e64 commit c7cd0a0

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.changeset/green-hounds-smoke.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@gradio/chatbot": minor
3+
"gradio": minor
4+
---
5+
6+
feat:Ensure chatbot background is consistent with other components

js/chatbot/shared/ChatBot.svelte

+5-3
Original file line numberDiff line numberDiff line change
@@ -391,11 +391,15 @@
391391
.bubble-wrap {
392392
width: 100%;
393393
overflow-y: auto;
394-
background: var(--background-fill-secondary);
394+
395395
height: 100%;
396396
padding-top: var(--spacing-xxl);
397397
}
398398
399+
:global(.dark) .bubble-wrap {
400+
background: var(--background-fill-secondary);
401+
}
402+
399403
.message-wrap {
400404
display: flex;
401405
flex-direction: column;
@@ -469,7 +473,6 @@
469473
/* Colors */
470474
.bubble .bot {
471475
border-color: var(--border-color-primary);
472-
background: var(--background-fill-secondary);
473476
}
474477
475478
.bubble .user {
@@ -522,7 +525,6 @@
522525
523526
.message-row.bubble.bot-row {
524527
align-self: flex-start;
525-
background: var(--background-fill-secondary);
526528
width: calc(100% - var(--spacing-xl) * 6);
527529
}
528530

0 commit comments

Comments
 (0)