feat: 工作台聊天室功能

This commit is contained in:
2026-05-31 02:37:23 +08:00
parent 83cf9eab94
commit f83f434863
33 changed files with 2520 additions and 265 deletions

View File

@@ -53,6 +53,10 @@ body {
padding: var(--ant-padding-xl) var(--ant-padding-xl);
}
.app-chat-page {
height: 100%;
}
.app-console-title {
color: var(--ant-color-text-secondary);
font-size: var(--ant-font-size);
@@ -72,3 +76,87 @@ body {
justify-content: center;
min-height: 60vh;
}
.app-chat-sidebar {
display: flex;
width: 260px;
flex-direction: column;
border-right: 1px solid var(--ant-color-border-secondary);
background: var(--ant-color-bg-container);
}
.app-chat-sidebar-header {
padding: var(--ant-padding-sm);
border-bottom: 1px solid var(--ant-color-border-secondary);
}
.app-chat-sidebar-list {
flex: 1;
overflow: auto;
}
.app-chat-sidebar-loading {
display: flex;
align-items: center;
justify-content: center;
padding: var(--ant-padding-xl);
}
.app-chat-sidebar-item {
cursor: pointer;
padding: var(--ant-padding-xs) var(--ant-padding-sm);
border-bottom: 1px solid var(--ant-color-border-secondary);
}
.app-chat-sidebar-item:hover {
background: var(--ant-color-bg-text-hover);
}
.app-chat-sidebar-item-active {
background: var(--ant-color-bg-text-hover);
}
.app-chat-sidebar-item-title {
flex: 1;
min-width: 0;
}
.app-chat-sidebar-item-action {
opacity: 0;
transition: opacity 0.2s;
}
.app-chat-sidebar-item:hover .app-chat-sidebar-item-action,
.app-chat-sidebar-item-active .app-chat-sidebar-item-action {
opacity: 1;
}
.app-chat-panel {
display: flex;
flex: 1;
flex-direction: column;
min-width: 0;
}
.app-chat-panel-empty {
align-items: center;
justify-content: center;
}
.app-chat-panel-loading {
display: flex;
align-items: center;
justify-content: center;
flex: 1;
}
.app-chat-panel-sender {
padding: var(--ant-padding-sm) var(--ant-padding);
border-top: 1px solid var(--ant-color-border-secondary);
}
.app-chat-message-bubble {
white-space: pre-wrap;
word-break: break-word;
line-height: 1.6;
}