74 lines
1.5 KiB
CSS
74 lines
1.5 KiB
CSS
/* 聊天侧边栏样式 */
|
|
.chat-sidebar-menu .ant-menu-item {
|
|
margin: 4px 0;
|
|
border-radius: 6px;
|
|
height: auto;
|
|
line-height: 1.4;
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.chat-sidebar-menu .ant-menu-item:hover {
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.chat-sidebar-menu .ant-menu-item-selected {
|
|
background-color: rgba(0, 104, 74, 0.1);
|
|
border-color: rgb(0, 104, 74);
|
|
}
|
|
|
|
.chat-sidebar-menu .ant-menu-item-selected::after {
|
|
border-right: 3px solid rgb(0, 104, 74);
|
|
}
|
|
|
|
/* 会话项样式 */
|
|
.chat-sidebar-menu .ant-menu-item .ant-menu-title-content {
|
|
width: 100%;
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768px) {
|
|
.ant-layout-sider {
|
|
position: fixed !important;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.ant-layout-sider.ant-layout-sider-collapsed {
|
|
left: -200px;
|
|
}
|
|
}
|
|
|
|
/* 滚动条样式 */
|
|
.chat-sidebar-menu::-webkit-scrollbar {
|
|
width: 4px;
|
|
}
|
|
|
|
.chat-sidebar-menu::-webkit-scrollbar-track {
|
|
background: #f1f1f1;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.chat-sidebar-menu::-webkit-scrollbar-thumb {
|
|
background: #c1c1c1;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.chat-sidebar-menu::-webkit-scrollbar-thumb:hover {
|
|
background: #a8a8a8;
|
|
}
|
|
|
|
/* 确保侧边栏布局正确 */
|
|
.ant-layout-sider {
|
|
display: flex !important;
|
|
flex-direction: column !important;
|
|
}
|
|
|
|
/* 侧边栏内容区域样式 */
|
|
.ant-layout-sider .ant-layout-sider-children {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
} |