nex_docus/frontend/src/pages/Chat/Chat.css

110 lines
1.6 KiB
CSS
Raw Normal View History

/* Chat 页面样式 */
.chat-container {
display: flex;
height: 100vh;
}
.chat-sidebar {
width: 280px;
border-right: 1px solid #e8e8e8;
overflow-y: auto;
background: #fafafa;
padding: 16px;
}
.chat-header {
padding: 16px;
border-bottom: 1px solid #e8e8e8;
display: flex;
justify-content: space-between;
align-items: center;
}
.chat-header-title {
font-size: 16px;
font-weight: 600;
}
.chat-content {
flex: 1;
display: flex;
flex-direction: column;
background: #fff;
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 16px;
display: flex;
flex-direction: column;
}
.chat-message {
margin-bottom: 12px;
display: flex;
justify-content: flex-start;
}
.chat-message.user {
justify-content: flex-end;
}
.chat-message-bubble {
max-width: 70%;
padding: 8px 12px;
border-radius: 6px;
word-break: break-word;
white-space: pre-wrap;
}
.chat-message-bubble.user {
background: #1890ff;
color: #fff;
}
.chat-message-bubble.assistant {
background: #f0f0f0;
color: #000;
}
.chat-input-area {
padding: 16px;
border-top: 1px solid #e8e8e8;
display: flex;
gap: 8px;
}
.chat-session-item {
padding: 8px;
margin-bottom: 8px;
border-radius: 4px;
cursor: pointer;
border: 1px solid #d9d9d9;
transition: all 0.3s;
}
.chat-session-item:hover {
background: #f5f5f5;
}
.chat-session-item.active {
background: #e6f7ff;
border: 1px solid #1890ff;
}
.chat-session-title {
font-size: 13px;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.chat-session-date {
font-size: 11px;
color: #999;
margin-top: 4px;
}