feat: AI 对话支持 A2UI 表单/审查/图表与 Agent 工具
This commit is contained in:
@@ -207,10 +207,68 @@
|
||||
padding: 20px clamp(16px, 4vw, 48px);
|
||||
}
|
||||
|
||||
.ai-chat-messages .ant-bubble {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.ai-chat-messages .ant-bubble-content {
|
||||
max-width: min(100%, 680px);
|
||||
}
|
||||
|
||||
.ai-chat-messages .ant-bubble-extra {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 10px;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.ai-chat-hover-actions {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
padding: 3px;
|
||||
background: rgba(255, 255, 255, 0.94);
|
||||
border: 1px solid #eceef2;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
|
||||
opacity: 0;
|
||||
transform: translateY(-3px);
|
||||
transition:
|
||||
opacity 0.15s ease,
|
||||
transform 0.15s ease;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.ai-chat-messages .ant-bubble:hover .ai-chat-hover-actions,
|
||||
.ai-chat-hover-actions:focus-within {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.ai-chat-hover-action {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
border-radius: 6px;
|
||||
color: #5f6672;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.ai-chat-hover-action:hover {
|
||||
background: #f0f2f5;
|
||||
color: #1f2329;
|
||||
}
|
||||
|
||||
.ai-chat-hover-action.is-danger:hover {
|
||||
background: #fff1f0;
|
||||
color: #cf1322;
|
||||
}
|
||||
|
||||
.ai-chat-user-text {
|
||||
max-width: 100%;
|
||||
overflow-wrap: anywhere;
|
||||
@@ -221,6 +279,10 @@
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.ai-chat-user-edit {
|
||||
width: min(520px, 100%);
|
||||
}
|
||||
|
||||
.ai-chat-answer {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
|
||||
Reference in New Issue
Block a user