完整展示无卡片助手回复

This commit is contained in:
kx_guo 2026-10-27 15:28:31 +08:00
parent 56d7ac0b20
commit 591cce3a98

View File

@ -590,6 +590,11 @@ async function scrollToBottom(behavior: "smooth" | "auto" = "smooth") {
<button
type="button"
class="assistant-thinking__header"
:disabled="!message.riskResult && !message.responseCard"
:aria-expanded="
(!message.riskResult && !message.responseCard) ||
expandedReplies.has(message.id)
"
@click="toggleReply(message.id)"
>
<span
@ -603,6 +608,7 @@ async function scrollToBottom(behavior: "smooth" | "auto" = "smooth") {
>
</span>
<ChevronDown
v-if="message.riskResult || message.responseCard"
:size="13"
class="assistant-thinking__arrow"
:class="{ expanded: expandedReplies.has(message.id) }"
@ -613,6 +619,7 @@ async function scrollToBottom(behavior: "smooth" | "auto" = "smooth") {
class="assistant-bubble"
:class="{
'assistant-bubble--collapsed':
(message.riskResult || message.responseCard) &&
!expandedReplies.has(message.id),
}"
>
@ -934,6 +941,8 @@ async function scrollToBottom(behavior: "smooth" | "auto" = "smooth") {
color: var(--color-text-secondary);
font-size: 13px;
line-height: 1.65;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.assistant-bubble--collapsed {
@ -965,7 +974,11 @@ async function scrollToBottom(behavior: "smooth" | "auto" = "smooth") {
transition: background 0.15s, color 0.15s;
}
.assistant-thinking__header:hover {
.assistant-thinking__header:disabled {
cursor: default;
}
.assistant-thinking__header:not(:disabled):hover {
background: var(--color-bg-warm);
color: var(--color-text-secondary);
}