mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-07 11:46:51 +08:00
Chatbot Image size and list fixes (#9161)
* fixes * add changeset * stor * radius * max height --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
ba6322ec2b
commit
173c7b8624
6
.changeset/fifty-toys-burn.md
Normal file
6
.changeset/fifty-toys-burn.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"@gradio/chatbot": patch
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
fix:Chatbot Image size and list fixes
|
@ -214,3 +214,14 @@ This document is a showcase of various Markdown capabilities.`,
|
||||
]
|
||||
}}
|
||||
/>
|
||||
|
||||
<Story
|
||||
name="Chatbot with image in markdown"
|
||||
args={{
|
||||
value: [
|
||||
[
|
||||
``
|
||||
]
|
||||
]
|
||||
}}
|
||||
/>
|
||||
|
@ -682,6 +682,19 @@
|
||||
max-height: 200px;
|
||||
}
|
||||
|
||||
.message-wrap
|
||||
> div
|
||||
:not(.avatar-container)
|
||||
div
|
||||
:not(.image-button)
|
||||
:global(img) {
|
||||
border-radius: var(--radius-xl);
|
||||
margin: var(--size-2);
|
||||
width: 400px;
|
||||
max-width: 30vw;
|
||||
max-height: 30vw;
|
||||
}
|
||||
|
||||
.message-wrap .message :global(a) {
|
||||
color: var(--color-text-link);
|
||||
text-decoration: underline;
|
||||
@ -701,12 +714,6 @@
|
||||
border: 1px solid var(--border-color-accent);
|
||||
}
|
||||
|
||||
/* Lists */
|
||||
.message-wrap :global(ol),
|
||||
.message-wrap :global(ul) {
|
||||
padding-inline-start: 2em;
|
||||
}
|
||||
|
||||
/* KaTeX */
|
||||
.message-wrap :global(span.katex) {
|
||||
font-size: var(--text-lg);
|
||||
|
Loading…
Reference in New Issue
Block a user