feat(chat): refactor chat message handling and introduce private messaging support
- Updated `uni_message_sender.py` to allow for private messaging by removing the mandatory group ID and adding user ID handling. - Enhanced chat history retrieval and clearing functions in `routes.py` and `service.py` to support both group and private chat scenarios. - Introduced a new `ChatScrollContext` for managing message scrolling and highlighting in the chat UI. - Created a `ListItemEditorHookFactory` for rendering a rich UI editor for list items in configuration settings, replacing the previous JSON text display. - Improved message serialization for consistent display in chat history. - Added detailed logging for chat history operations and error handling. Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -331,6 +331,23 @@
|
||||
.border-primary-gradient {
|
||||
border-image: var(--color-primary-gradient, linear-gradient(to right, hsl(var(--color-primary)), hsl(var(--color-primary)))) 1;
|
||||
}
|
||||
|
||||
/* 聊天消息行被回复点击命中时的高亮闪烁。 */
|
||||
.chat-message-flash {
|
||||
animation: chat-message-flash 1.6s ease-out;
|
||||
border-radius: 0.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes chat-message-flash {
|
||||
0% {
|
||||
background-color: hsl(var(--color-primary) / 0.18);
|
||||
box-shadow: 0 0 0 4px hsl(var(--color-primary) / 0.18);
|
||||
}
|
||||
100% {
|
||||
background-color: transparent;
|
||||
box-shadow: 0 0 0 0 transparent;
|
||||
}
|
||||
}
|
||||
|
||||
/* 禁用动效时的样式 */
|
||||
|
||||
Reference in New Issue
Block a user