236 lines
4.4 KiB
CSS
236 lines
4.4 KiB
CSS
.chat-side {
|
|
width: 300px;
|
|
background: var(--color-surface);
|
|
border-right: 1px solid var(--color-border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
transition: width 0.3s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.chat-side.is-collapsed {
|
|
width: 68px !important;
|
|
}
|
|
|
|
.chat-agent-sidebar-toggle {
|
|
position: absolute;
|
|
right: -12px;
|
|
top: 24px;
|
|
width: 24px;
|
|
height: 24px;
|
|
background: var(--color-surface);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
z-index: 1001;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
|
|
color: var(--color-text-secondary);
|
|
font-size: 12px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.chat-agent-sidebar-toggle:hover {
|
|
color: var(--color-brand);
|
|
border-color: var(--color-brand);
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.chat-side.is-collapsed .chat-agent-sidebar-header {
|
|
padding: 16px 8px 8px;
|
|
}
|
|
|
|
.chat-side.is-collapsed .chat-agent-create-btn {
|
|
padding: 0 !important;
|
|
width: 40px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.chat-side.is-collapsed .chat-agent-sidebar-list {
|
|
padding: 8px;
|
|
}
|
|
|
|
.chat-side.is-collapsed .chat-agent-item {
|
|
justify-content: center;
|
|
padding: 8px 0;
|
|
border-left: none;
|
|
}
|
|
|
|
.chat-side.is-collapsed .chat-agent-item.active {
|
|
background: var(--color-surface-3);
|
|
}
|
|
|
|
.chat-side.is-collapsed .chat-agent-item.active::after {
|
|
right: 4px;
|
|
bottom: 4px;
|
|
}
|
|
|
|
.chat-side.is-full {
|
|
width: 100%;
|
|
border: 0;
|
|
}
|
|
|
|
.chat-agent-sidebar-header {
|
|
padding: 16px 16px 8px;
|
|
}
|
|
|
|
.chat-agent-create-btn {
|
|
height: 40px !important;
|
|
border-radius: 12px !important;
|
|
font-weight: 600 !important;
|
|
background: var(--color-brand) !important;
|
|
border: none !important;
|
|
box-shadow: 0 4px 12px rgba(79, 209, 197, 0.2) !important;
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
gap: 8px !important;
|
|
}
|
|
|
|
.chat-agent-create-btn:hover {
|
|
background: var(--color-brand-hover) !important;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.chat-agent-tabs {
|
|
padding: 0 16px;
|
|
}
|
|
|
|
.chat-agent-tabs .ant-tabs-nav {
|
|
margin-bottom: 8px !important;
|
|
}
|
|
|
|
.chat-agent-tabs .ant-tabs-tab {
|
|
padding: 8px 4px !important;
|
|
font-size: 13px !important;
|
|
color: var(--color-text-secondary) !important;
|
|
}
|
|
|
|
.chat-agent-tabs .ant-tabs-tab-active .ant-tabs-tab-btn {
|
|
color: var(--color-text) !important;
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
.chat-agent-tabs .ant-tabs-ink-bar {
|
|
background: var(--color-brand) !important;
|
|
height: 3px !important;
|
|
border-radius: 3px 3px 0 0 !important;
|
|
}
|
|
|
|
.chat-agent-sidebar-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.chat-agent-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.chat-agent-group-label {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--color-text-tertiary);
|
|
padding: 0 8px 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.chat-agent-group-count {
|
|
font-weight: 400;
|
|
}
|
|
|
|
.chat-agent-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 8px 10px;
|
|
cursor: pointer;
|
|
border-radius: 12px;
|
|
margin-bottom: 2px;
|
|
transition: all 0.2s;
|
|
position: relative;
|
|
}
|
|
|
|
.chat-agent-item:hover {
|
|
background: var(--color-surface-2);
|
|
}
|
|
|
|
.chat-agent-item.active {
|
|
background: var(--color-surface-3);
|
|
border-left: 3px solid #5CCFC4;
|
|
}
|
|
|
|
.chat-agent-item.active::after {
|
|
content: '';
|
|
position: absolute;
|
|
right: 12px;
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--color-brand);
|
|
}
|
|
|
|
.chat-agent-avatar-wrap {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 10px;
|
|
color: #fff;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 700;
|
|
font-size: 13px;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
|
|
}
|
|
|
|
.chat-agent-avatar-img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.chat-agent-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.chat-agent-name {
|
|
font-size: 13.5px;
|
|
color: var(--color-text);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.chat-agent-item.active .chat-agent-name {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.chat-agent-sidebar-status {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 40px 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.chat-agent-empty-text,
|
|
.chat-agent-loading-text {
|
|
font-size: 12px;
|
|
color: var(--color-text-tertiary);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.chat-agent-loading-text {
|
|
margin-top: 12px;
|
|
}
|