feat: 支持 MCP 图片内联渲染
This commit is contained in:
@@ -2821,6 +2821,50 @@ html[data-theme='wasteland'] .advanced-search-panel {
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
.assistant-image {
|
||||
margin: 8px 0 2px;
|
||||
max-width: min(100%, 680px);
|
||||
}
|
||||
.assistant-image-button {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
background: var(--bg-secondary);
|
||||
cursor: zoom-in;
|
||||
}
|
||||
.assistant-image-button:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
.assistant-image img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-height: 520px;
|
||||
object-fit: contain;
|
||||
}
|
||||
.assistant-image figcaption {
|
||||
margin-top: 6px;
|
||||
color: var(--text-secondary);
|
||||
font-size: 12px;
|
||||
}
|
||||
.tool-call.ccweb-display-image-tool {
|
||||
margin: 8px 0 2px;
|
||||
padding: 0;
|
||||
overflow: visible;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
.ccweb-display-image-content {
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
}
|
||||
.ccweb-display-image-content .msg-attachments {
|
||||
margin-top: 0;
|
||||
}
|
||||
.msg-attachments {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(150px, 220px));
|
||||
|
||||
Reference in New Issue
Block a user