-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix chatbot component streaming bug and visible bug #9730
Changes from 6 commits
68e3e00
d501d13
bf950df
e286b6f
857cc30
b0290ab
6751a2e
eae98e4
ded734a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@gradio/chatbot": patch | ||
"gradio": patch | ||
--- | ||
|
||
fix:Fix chatbot component streaming bug and visible bug |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,7 +92,7 @@ | |
{min_height} | ||
{max_height} | ||
allow_overflow={true} | ||
flex={true} | ||
flex={visible} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor but feel like this should be fixed at the Block.svelte level - if flex=true, but visible=false, the Block should be hidden |
||
overflow_behavior="auto" | ||
> | ||
{#if loading_status} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -284,12 +284,13 @@ | |
{#if is_image_preview_open} | ||
<div class="image-preview"> | ||
<img src={image_preview_source} alt={image_preview_source_alt} /> | ||
<button | ||
class="image-preview-close-button" | ||
on:click={() => { | ||
is_image_preview_open = false; | ||
}}><Clear /></button | ||
> | ||
<IconButtonWrapper> | ||
<IconButton | ||
Icon={Clear} | ||
on:click={() => (is_image_preview_open = false)} | ||
label={"Clear"} | ||
/> | ||
</IconButtonWrapper> | ||
</div> | ||
{/if} | ||
<Message | ||
|
@@ -595,4 +596,18 @@ | |
0 2px 2px rgba(0, 0, 0, 0.05); | ||
transform: translateY(-2px); | ||
} | ||
.image-preview { | ||
position: absolute; | ||
z-index: 999; | ||
left: 0; | ||
top: 0; | ||
width: 100%; | ||
height: 100%; | ||
overflow: auto; | ||
background-color: var(--background-fill-secondary); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
Comment on lines
+600
to
+612
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is this css necessary? seemed to work fine before There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
</style> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like self explanatory code,, comment is unnecessary imo