discourse/plugins/chat/assets/stylesheets/common/chat-message-text.scss
Joffrey JAFFEUX 41790f7739
DEV: allows stop/resume streaming on a message (#25774)
```ruby
ChatSDK::Message.start_stream(message_id: 1, guardian: guardian)
ChatSDK::Message.stream(raw: "foo", message_id: 1, guardian: guardian)
ChatSDK::Message.stream(raw: "bar", message_id: 1, guardian: guardian)
ChatSDK::Message.stop_stream(message_id: 1, guardian: guardian)
```

Generally speaking only admins or owners of the message can interact with a message.  Also note, Streaming to an existing message with a different user won't change the initial user of the message.
2024-02-26 14:16:29 +01:00

26 lines
469 B
SCSS

.chat-message-container.-streaming {
.chat-message-text {
@keyframes cursor-blink {
0% {
opacity: 0;
}
}
p::after {
margin-left: 1px;
margin-bottom: -4px;
content: "";
width: 6px;
height: 17px;
background: var(--primary);
display: inline-block;
animation: cursor-blink 0.5s steps(2) infinite;
}
}
.stop-streaming-btn {
margin-top: 0.5rem;
margin-bottom: 0.25rem;
}
}