308 lines
5.1 KiB
CSS
308 lines
5.1 KiB
CSS
/**
|
|||
|
|
* Conversation Sidebar Styles
|
||
|
|
* 类似ChatGPT的会话侧边栏样式
|
||
|
|
*/
|
||
|
|
|
||
|
|
/* 侧边栏容器 */
|
||
|
|
.conversation-sidebar {
|
||
|
|
width: 260px;
|
||
|
|
min-width: 260px;
|
||
|
|
height: 100%;
|
||
|
|
background: #202123;
|
||
|
|
color: #ececf1;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
transition: width 0.3s ease;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
.conversation-sidebar.collapsed {
|
||
|
|
width: 60px;
|
||
|
|
min-width: 60px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 头部 */
|
||
|
|
.sidebar-header {
|
||
|
|
padding: 12px;
|
||
|
|
display: flex;
|
||
|
|
gap: 8px;
|
||
|
|
align-items: center;
|
||
|
|
border-bottom: 1px solid #2d2d2d;
|
||
|
|
}
|
||
|
|
|
||
|
|
.new-chat-btn {
|
||
|
|
flex: 1;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 8px;
|
||
|
|
padding: 10px 12px;
|
||
|
|
background: transparent;
|
||
|
|
border: 1px solid #4d4d4f;
|
||
|
|
border-radius: 6px;
|
||
|
|
color: #ececf1;
|
||
|
|
font-size: 14px;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: all 0.2s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.new-chat-btn:hover {
|
||
|
|
background: #2d2d2d;
|
||
|
|
border-color: #ececf1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.new-chat-btn .el-icon {
|
||
|
|
font-size: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toggle-btn {
|
||
|
|
width: 36px;
|
||
|
|
height: 36px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
background: transparent;
|
||
|
|
border: none;
|
||
|
|
color: #8e8ea0;
|
||
|
|
cursor: pointer;
|
||
|
|
border-radius: 6px;
|
||
|
|
transition: all 0.2s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toggle-btn:hover {
|
||
|
|
background: #2d2d2d;
|
||
|
|
color: #ececf1;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 搜索框 */
|
||
|
|
.search-box {
|
||
|
|
padding: 12px;
|
||
|
|
border-bottom: 1px solid #2d2d2d;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-box .el-input__wrapper {
|
||
|
|
background: #2d2d2d !important;
|
||
|
|
border: 1px solid #4d4d4f !important;
|
||
|
|
border-radius: 6px !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-box .el-input__inner {
|
||
|
|
color: #ececf1 !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-box .el-input__inner::placeholder {
|
||
|
|
color: #8e8ea0 !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 会话列表 */
|
||
|
|
.conversation-list {
|
||
|
|
flex: 1;
|
||
|
|
overflow-y: auto;
|
||
|
|
padding: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 分组标题 */
|
||
|
|
.list-section {
|
||
|
|
margin-bottom: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.section-title {
|
||
|
|
padding: 8px 12px;
|
||
|
|
font-size: 12px;
|
||
|
|
color: #8e8ea0;
|
||
|
|
text-transform: uppercase;
|
||
|
|
letter-spacing: 0.5px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 会话项 */
|
||
|
|
.conversation-item {
|
||
|
|
display: flex;
|
||
|
|
align-items: flex-start;
|
||
|
|
gap: 10px;
|
||
|
|
padding: 10px 12px;
|
||
|
|
margin-bottom: 2px;
|
||
|
|
border-radius: 6px;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: all 0.2s;
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
|
||
|
|
.conversation-item:hover {
|
||
|
|
background: #2d2d2d;
|
||
|
|
}
|
||
|
|
|
||
|
|
.conversation-item.active {
|
||
|
|
background: #343541;
|
||
|
|
}
|
||
|
|
|
||
|
|
.item-icon {
|
||
|
|
width: 20px;
|
||
|
|
height: 20px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
color: #8e8ea0;
|
||
|
|
flex-shrink: 0;
|
||
|
|
margin-top: 2px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.item-content {
|
||
|
|
flex: 1;
|
||
|
|
min-width: 0;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
.item-title {
|
||
|
|
font-size: 14px;
|
||
|
|
color: #ececf1;
|
||
|
|
white-space: nowrap;
|
||
|
|
overflow: hidden;
|
||
|
|
text-overflow: ellipsis;
|
||
|
|
margin-bottom: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.item-meta {
|
||
|
|
display: flex;
|
||
|
|
gap: 8px;
|
||
|
|
align-items: center;
|
||
|
|
margin-bottom: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.gene-family {
|
||
|
|
font-size: 11px;
|
||
|
|
color: #10a37f;
|
||
|
|
background: rgba(16, 163, 127, 0.1);
|
||
|
|
padding: 2px 6px;
|
||
|
|
border-radius: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.message-count {
|
||
|
|
font-size: 11px;
|
||
|
|
color: #8e8ea0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.item-preview {
|
||
|
|
font-size: 12px;
|
||
|
|
color: #8e8ea0;
|
||
|
|
white-space: nowrap;
|
||
|
|
overflow: hidden;
|
||
|
|
text-overflow: ellipsis;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 操作按钮 */
|
||
|
|
.item-actions {
|
||
|
|
opacity: 0;
|
||
|
|
transition: opacity 0.2s;
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.conversation-item:hover .item-actions {
|
||
|
|
opacity: 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.item-actions .el-icon {
|
||
|
|
color: #8e8ea0;
|
||
|
|
cursor: pointer;
|
||
|
|
padding: 4px;
|
||
|
|
border-radius: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.item-actions .el-icon:hover {
|
||
|
|
color: #ececf1;
|
||
|
|
background: #4d4d4f;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 空状态 */
|
||
|
|
.empty-state {
|
||
|
|
padding: 40px 20px;
|
||
|
|
text-align: center;
|
||
|
|
color: #8e8ea0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.empty-state .el-icon {
|
||
|
|
font-size: 48px;
|
||
|
|
margin-bottom: 16px;
|
||
|
|
color: #4d4d4f;
|
||
|
|
}
|
||
|
|
|
||
|
|
.empty-state p {
|
||
|
|
margin: 0;
|
||
|
|
font-size: 14px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.empty-state .hint {
|
||
|
|
font-size: 12px;
|
||
|
|
margin-top: 8px;
|
||
|
|
color: #6e6e80;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 底部用户信息 */
|
||
|
|
.sidebar-footer {
|
||
|
|
padding: 12px;
|
||
|
|
border-top: 1px solid #2d2d2d;
|
||
|
|
}
|
||
|
|
|
||
|
|
.user-info {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 10px;
|
||
|
|
padding: 8px;
|
||
|
|
border-radius: 6px;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: background 0.2s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.user-info:hover {
|
||
|
|
background: #2d2d2d;
|
||
|
|
}
|
||
|
|
|
||
|
|
.username {
|
||
|
|
font-size: 14px;
|
||
|
|
color: #ececf1;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 滚动条样式 */
|
||
|
|
.conversation-list::-webkit-scrollbar {
|
||
|
|
width: 6px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.conversation-list::-webkit-scrollbar-track {
|
||
|
|
background: transparent;
|
||
|
|
}
|
||
|
|
|
||
|
|
.conversation-list::-webkit-scrollbar-thumb {
|
||
|
|
background: #4d4d4f;
|
||
|
|
border-radius: 3px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.conversation-list::-webkit-scrollbar-thumb:hover {
|
||
|
|
background: #6e6e80;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 下拉菜单样式 */
|
||
|
|
.el-dropdown-menu {
|
||
|
|
background: #202123 !important;
|
||
|
|
border: 1px solid #4d4d4f !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.el-dropdown-menu__item {
|
||
|
|
color: #ececf1 !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.el-dropdown-menu__item:hover {
|
||
|
|
background: #2d2d2d !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.el-dropdown-menu__item.is-divided {
|
||
|
|
border-top: 1px solid #4d4d4f !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 深色主题覆盖 */
|
||
|
|
.conversation-sidebar .el-input__wrapper {
|
||
|
|
background: #2d2d2d !important;
|
||
|
|
box-shadow: 0 0 0 1px #4d4d4f inset !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.conversation-sidebar .el-input__inner {
|
||
|
|
color: #ececf1 !important;
|
||
|
|
}
|