feat: 增加AI回复手动重试

This commit is contained in:
2026-08-03 17:55:02 +08:00
parent 8e6da99dcb
commit 1954f461af
10 changed files with 234 additions and 32 deletions

View File

@@ -1400,6 +1400,51 @@ textarea:focus-visible {
.generation-state span:nth-child(2) { animation-delay: 0.14s; }
.generation-state span:nth-child(3) { animation-delay: 0.28s; margin-right: 4px; }
.message-error-state {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 9px 12px;
margin-top: 10px;
padding: 10px 11px;
border: 1px solid #ead5cf;
border-radius: 11px;
background: #fff8f5;
color: #8a5043;
font-size: 13px;
line-height: 1.5;
}
.message-error-state span {
flex: 1 1 190px;
}
.message-error-state button {
min-height: 32px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 0 11px;
border: 1px solid #bf7765;
border-radius: 9px;
background: #ffffff;
color: #8a4434;
font: inherit;
font-weight: 700;
white-space: nowrap;
cursor: pointer;
}
.message-error-state button:hover {
background: #fff0eb;
}
.message-error-state button:disabled {
cursor: not-allowed;
opacity: 0.55;
}
@keyframes generation-pulse {
0%, 70%, 100% { opacity: 0.25; transform: translateY(0); }
35% { opacity: 1; transform: translateY(-2px); }