feat: streaming AI responses with stop button

This commit is contained in:
Alexej Wolff
2026-02-11 01:30:56 +01:00
parent 715f2a9bcf
commit 161ecd661e
3 changed files with 200 additions and 15 deletions
+34
View File
@@ -351,6 +351,40 @@
cursor: not-allowed;
}
.stop-btn {
width: 50px;
min-width: 50px;
height: 50px;
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
border: none;
border-radius: 12px;
color: white;
font-size: 1.25rem;
cursor: pointer;
transition: transform 0.2s;
flex-shrink: 0;
}
.stop-btn:hover {
transform: scale(1.05);
}
/* Streaming message animation */
.message.streaming .message-text {
position: relative;
}
.message.streaming .message-text::after {
content: '▋';
animation: blink 1s infinite;
margin-left: 2px;
}
@keyframes blink {
0%, 50% { opacity: 1; }
51%, 100% { opacity: 0; }
}
/* Скроллбар */
.messages-container::-webkit-scrollbar {
width: 6px;